Skip to content

Commit

Permalink
Build additional tags (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
andyundso authored Jan 15, 2025
1 parent bff8152 commit cb28e99
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ jobs:
# renovate: datasource=docker depName=alpine versioning=docker
OS_VERSION: "3.21"
- flavor: "bookworm"
alias: "debian"
pg_target:
- "12"
- "13"
Expand Down Expand Up @@ -114,6 +115,7 @@ jobs:
tags: |
"pgautoupgrade/pgautoupgrade:${{ matrix.pg_target }}-${{ matrix.operating_system.flavor }}"
"pgautoupgrade/pgautoupgrade:${{ matrix.pg_target }}-${{ matrix.operating_system.flavor }}${{ matrix.operating_system.OS_VERSION }}"
"pgautoupgrade/pgautoupgrade:${{ matrix.pg_target }}-${{ matrix.operating_system.alias }}"
build-args: |
"PGTARGET=${{ matrix.pg_target }}"
cache-to: type=inline
Expand Down Expand Up @@ -147,13 +149,29 @@ jobs:
tags: |
"pgautoupgrade/pgautoupgrade:${{ matrix.pg_target }}-${{ matrix.operating_system.flavor }}"
"pgautoupgrade/pgautoupgrade:${{ matrix.pg_target }}-${{ matrix.operating_system.flavor }}${{ matrix.operating_system.OS_VERSION }}"
"pgautoupgrade/pgautoupgrade:${{ matrix.pg_target }}-${{ matrix.operating_system.alias }}"
build-args: |
"PGTARGET=${{ matrix.pg_target }}"
push: true
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 cb28e99

Please sign in to comment.