Skip to content

Commit 362a54c

Browse files
Merge pull request #4 from trycompa/tags
add tags for individual and multiplatform
2 parents db7b86b + f9cb76b commit 362a54c

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/_docker.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,23 @@ jobs:
2525
- name: 'Set up Docker Buildx'
2626
uses: docker/setup-buildx-action@v3
2727

28-
- name: 'Build Postgres Image'
28+
- name: 'Build Postgres Image for linux/amd64'
29+
run: |
30+
docker build \
31+
-f Dockerfile.postgres \
32+
--platform linux/amd64 \
33+
-t ghcr.io/trycompa/postgres:${{ inputs.tag }}-linux-amd64 \
34+
--push .
35+
36+
- name: 'Build Postgres Multi-Architecture Image'
37+
run: |
38+
docker buildx build \
39+
-f Dockerfile.postgres \
40+
--platform linux/arm64 \
41+
-t ghcr.io/trycompa/postgres:${{ inputs.tag }}-linux-arm64 \
42+
--push .
43+
44+
- name: 'Build Postgres Multi-Architecture Image'
2945
run: |
3046
docker buildx build \
3147
-f Dockerfile.postgres \

0 commit comments

Comments
 (0)