Skip to content

Commit ff912ad

Browse files
committed
build: update action
1 parent 5aac66f commit ff912ad

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

.github/workflows/build-image.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,24 @@ jobs:
1212
packages: write
1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1616
- name: Set up QEMU
17-
uses: docker/setup-qemu-action@v2
17+
uses: docker/setup-qemu-action@v3
1818
- name: Set up Docker Buildx
19-
uses: docker/setup-buildx-action@v2
19+
uses: docker/setup-buildx-action@v3
2020
- name: Login to GitHub Container Registry
21-
uses: docker/login-action@v2
21+
uses: docker/login-action@v3
2222
with:
2323
registry: ghcr.io
2424
username: ${{ github.repository_owner }}
2525
password: ${{ secrets.GITHUB_TOKEN }}
2626
- name: Build and push
27-
uses: docker/build-push-action@v4
27+
uses: docker/build-push-action@v6
2828
with:
2929
context: .
3030
file: ./Dockerfile
3131
# platforms: ${{ matrix.platforms }}
32-
platforms: linux/amd64
32+
platforms: linux/amd64,linux/arm64/v8
3333
push: true
3434
tags: ghcr.io/x-b-e/server-pg:15
3535
build-args: |

Dockerfile

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22

33
ARG PG_MAJOR="15"
44
# see https://hub.docker.com/r/postgis/postgis for valid images
5-
ARG PG_TAG="15-3.4""
5+
ARG PG_IMAGE="postgis/postgis:15-3.4"
66

77
FROM $PG_IMAGE
88

9-
ARG PG_MAJOR
9+
# ARG PG_MAJOR
10+
# ENV PG_MAJOR=${PG_MAJOR}
11+
# ENV PG_MAJOR=15
1012

1113
LABEL org.opencontainers.image.source "https://github.com/x-b-e/pgvector"
1214
LABEL org.opencontainers.image.description "XBE server postgres with postgis, pgvector"

0 commit comments

Comments
 (0)