Bump docker/setup-buildx-action from 3.8.0 to 3.9.0 #570
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker PostGIS CI | |
on: | |
push: | |
paths-ignore: | |
- '.github/dependabot.yml' | |
- '.gitignore' | |
- 'LICENSE' | |
- 'README.md' | |
pull_request: | |
schedule: | |
- cron: '15 5 * * 2' # Weekly, 1 day after the upstream | |
# Cancel existing executions when new commits are pushed onto the same branch | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
make-docker-images: | |
strategy: | |
fail-fast: false | |
matrix: | |
# exclude the latest version set for use with "include" below | |
postgres: [12, 13, 14, 15, 16] | |
postgis: ['3.5'] | |
latest: [false] | |
include: | |
- postgres: 17 # only use the single latest version with "latest: true" | |
postgis: '3.5' | |
latest: true | |
name: Build docker image for ${{ matrix.postgres }}-${{ matrix.postgis }} | |
runs-on: ubuntu-22.04 | |
permissions: | |
contents: read | |
id-token: write | |
packages: write | |
env: | |
VERSION: ${{ matrix.postgres }}-${{ matrix.postgis }} | |
steps: | |
- name: Set up QEMU for amd64 and arm64 | |
uses: docker/setup-qemu-action@53851d14592bedcffcf25ea515637cff71ef929a | |
with: | |
platforms: linux/amd64,linux/arm64 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@f7ce87c1d6bead3e36075b2ce75da1f6cc28aaca | |
- name: Set up Depot CLI | |
uses: depot/setup-action@b0b1ea4f69e92ebf5dea3f8713a1b0c37b2126a5 | |
- name: Docker meta | |
id: meta | |
uses: docker/metadata-action@369eb591f429131d6889c46b94e711f089e6ca96 | |
with: | |
images: ghcr.io/${{ github.repository_owner }}/postgis | |
labels: | | |
org.opencontainers.image.title=postgis | |
org.opencontainers.image.version=${{ env.VERSION }} | |
org.opencontainers.image.base.name=docker.io/postgis/postgis:${{ env.VERSION }} | |
tags: | | |
type=raw,value=${{ env.VERSION }},enable=true,priority=200 | |
type=raw,value=${{ matrix.postgres }},enable=true,priority=200 | |
type=raw,value=latest,enable=${{ matrix.latest }},priority=200 | |
- name: Login to GitHub Container Registry | |
if: ${{ (github.ref == 'refs/heads/multiarch') && (github.event_name != 'pull_request') && !env.ACT }} | |
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Multi-platform build (docker buildx) | |
if: ${{ !((github.ref == 'refs/heads/multiarch') && (github.event_name != 'pull_request') && !env.ACT) }} | |
uses: docker/build-push-action@ca877d9245402d1537745e0e356eab47c3520991 | |
with: | |
platforms: linux/amd64,linux/arm64 | |
context: https://github.com/postgis/docker-postgis.git#master | |
file: ${{ env.VERSION }}/Dockerfile | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} | |
pull: true | |
push: false | |
- name: Multi-platform build and push (depot.dev) | |
if: ${{ (github.ref == 'refs/heads/multiarch') && (github.event_name != 'pull_request') && !env.ACT }} | |
uses: depot/build-push-action@636daae76684e38c301daa0c5eca1c095b24e780 | |
with: | |
project: p4q8k8mb22 | |
no-cache: true | |
platforms: linux/amd64,linux/arm64 | |
context: https://github.com/postgis/docker-postgis.git#master | |
file: ${{ env.VERSION }}/Dockerfile | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} | |
pull: true | |
push: true |