Skip to content

Commit

Permalink
Update docker.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Y-- committed Feb 7, 2025
1 parent 976201f commit f1cce73
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:
env:
BUILDKIT_PROGRESS: plain
POSTGRES_VERSION: ${{ matrix.postgres }}
outputs:
branch_tag: ${{ steps.compute_platform.outputs.branch_tag }}
steps:
- name: Login to Docker Hub
uses: docker/login-action@v3
Expand Down Expand Up @@ -99,8 +101,13 @@ jobs:
run: |
docker pull --platform linux/amd64 pgduckdb/pgduckdb:${{ matrix.postgres }}-amd64-${{ github.sha }}
docker pull --platform linux/arm64 pgduckdb/pgduckdb:${{ matrix.postgres }}-arm64-${{ github.sha }}
docker manifest create \
pgduckdb/pgduckdb:${{ matrix.postgres }}-${{ github.sha }} \
--amend pgduckdb/pgduckdb:${{ matrix.postgres }}-amd64-${{ github.sha }} \
--amend pgduckdb/pgduckdb:${{ matrix.postgres }}-arm64-${{ github.sha }}
docker manifest push pgduckdb/pgduckdb:${{ matrix.postgres }}-${{ github.sha }}
BRANCH="${{ needs.docker_build.outputs.branch_tag }}"
docker buildx imagetools create \
--tag pgduckdb/pgduckdb:${{ matrix.postgres }}-${{ github.sha }} \
--tag pgduckdb/pgduckdb:${{ matrix.postgres }}-${BRANCH}-latest \
pgduckdb/pgduckdb:${{ matrix.postgres }}-amd64-${{ github.sha }} \
pgduckdb/pgduckdb:${{ matrix.postgres }}-arm64-${{ github.sha }}
docker buildx imagetools inspect pgduckdb/pgduckdb:${{ matrix.postgres }}-${{ github.sha }}

0 comments on commit f1cce73

Please sign in to comment.