Skip to content

Update postgis/postgis:16-3.4-alpine Docker digest to 2451373 #29

Update postgis/postgis:16-3.4-alpine Docker digest to 2451373

Update postgis/postgis:16-3.4-alpine Docker digest to 2451373 #29

Workflow file for this run

name: build & publish Docker image
on:
push:
branches:
- main
jobs:
build-publish:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: set up Docker buildx
uses: docker/setup-buildx-action@v3
- name: log into the GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- name: compute Docker image tag
id: docker-tags
run: |
echo "permanent-tag=$(date +"%Y-%m-%dT%H.%M.%S")-${GITHUB_SHA:0:7}" >>$GITHUB_OUTPUT
- name: build and push Docker image
uses: docker/build-push-action@v6
with:
push: true
tags: |
ghcr.io/${{ github.repository }}:latest
ghcr.io/${{ github.repository }}:${{ steps.docker-tags.outputs.permanent-tag }}
# todo: add linux/arm64 once postgis/postgis supports it
# see also https://github.com/postgis/docker-postgis/issues/216
platforms: linux/amd64
# https://docs.docker.com/build/ci/github-actions/cache/#cache-backend-api
cache-from: type=gha
cache-to: type=gha,mode=max