Skip to content

Commit

Permalink
Push new debian, bookworm and alpine tags
Browse files Browse the repository at this point in the history
  • Loading branch information
andyundso committed Jan 15, 2025
1 parent 227d401 commit b4c78f7
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,22 @@ jobs:
cache-to: type=inline
cache-from: "${{ env.CACHE_FROM }}"

- name: Push latest image
- name: Push latest image for each supported OS
if: github.repository == 'pgautoupgrade/docker-pgautoupgrade' && github.ref == 'refs/heads/main' && matrix.pg_target == env.LATEST_POSTGRES_VERSION
uses: docker/build-push-action@v6
with:
file: "Dockerfile.${{ matrix.operating_system.flavor }}"
platforms: linux/amd64,linux/arm64
tags: |
"pgautoupgrade/pgautoupgrade:${{ matrix.operating_system.flavor }}"
"pgautoupgrade/pgautoupgrade:${{ matrix.operating_system.alias }}"
build-args: |
"PGTARGET=${{ matrix.pg_target }}"
push: true
cache-to: type=inline
cache-from: "${{ env.CACHE_FROM }}"

- name: Push general latest image
if: github.repository == 'pgautoupgrade/docker-pgautoupgrade' && github.ref == 'refs/heads/main' && matrix.pg_target == env.LATEST_POSTGRES_VERSION && matrix.operating_system.flavor == 'alpine'
uses: docker/build-push-action@v6
with:
Expand Down

0 comments on commit b4c78f7

Please sign in to comment.