From 5d64dc0f05ce96bf0a21ae14fb9d51768f6af11e Mon Sep 17 00:00:00 2001 From: jdmalandruccolo Date: Wed, 5 Mar 2025 17:12:52 -0800 Subject: [PATCH 1/3] add tags for individual and multiplatform --- .github/workflows/_docker.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/_docker.yml b/.github/workflows/_docker.yml index 37a0606..686bc26 100644 --- a/.github/workflows/_docker.yml +++ b/.github/workflows/_docker.yml @@ -25,7 +25,23 @@ jobs: - name: 'Set up Docker Buildx' uses: docker/setup-buildx-action@v3 - - name: 'Build Postgres Image' + - name: 'Build Postgres Image for linux/amd64' + run: | + docker build \ + -f Dockerfile.postgres \ + --platform linux/amd64 \ + -t ghcr.io/trycompa/postgres:${{ inputs.tag }}-linux/amd64 \ + --push . + + - name: 'Build Postgres Image for linux/arm64' + run: | + docker build \ + -f Dockerfile.postgres \ + --platform linux/arm64 \ + -t ghcr.io/trycompa/postgres:${{ inputs.tag }}-linux/arm64 \ + --push . + + - name: 'Build Postgres Multi-Architecture Image' run: | docker buildx build \ -f Dockerfile.postgres \ From cd237fc63978b27930a5cf6e90c3cff4c060c5bf Mon Sep 17 00:00:00 2001 From: jdmalandruccolo Date: Wed, 5 Mar 2025 17:18:28 -0800 Subject: [PATCH 2/3] tag format --- .github/workflows/_docker.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/_docker.yml b/.github/workflows/_docker.yml index 686bc26..195e9b0 100644 --- a/.github/workflows/_docker.yml +++ b/.github/workflows/_docker.yml @@ -30,7 +30,7 @@ jobs: docker build \ -f Dockerfile.postgres \ --platform linux/amd64 \ - -t ghcr.io/trycompa/postgres:${{ inputs.tag }}-linux/amd64 \ + -t ghcr.io/trycompa/postgres:${{ inputs.tag }}-linux-amd64 \ --push . - name: 'Build Postgres Image for linux/arm64' @@ -38,7 +38,7 @@ jobs: docker build \ -f Dockerfile.postgres \ --platform linux/arm64 \ - -t ghcr.io/trycompa/postgres:${{ inputs.tag }}-linux/arm64 \ + -t ghcr.io/trycompa/postgres:${{ inputs.tag }}-linux-arm64 \ --push . - name: 'Build Postgres Multi-Architecture Image' From f9cb76bcb0ae4630011ee41023c78558af9eaca5 Mon Sep 17 00:00:00 2001 From: jdmalandruccolo Date: Wed, 5 Mar 2025 17:29:20 -0800 Subject: [PATCH 3/3] platform --- .github/workflows/_docker.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/_docker.yml b/.github/workflows/_docker.yml index 195e9b0..6c38b86 100644 --- a/.github/workflows/_docker.yml +++ b/.github/workflows/_docker.yml @@ -33,9 +33,9 @@ jobs: -t ghcr.io/trycompa/postgres:${{ inputs.tag }}-linux-amd64 \ --push . - - name: 'Build Postgres Image for linux/arm64' + - name: 'Build Postgres Multi-Architecture Image' run: | - docker build \ + docker buildx build \ -f Dockerfile.postgres \ --platform linux/arm64 \ -t ghcr.io/trycompa/postgres:${{ inputs.tag }}-linux-arm64 \