Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 26 additions & 1 deletion .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,38 @@ jobs:
type=sha,format=short
type=raw,value={{date 'YYYYMMDD'}}

- name: Build and push Docker image
- name: Extract metadata for Docker - PostGIS
id: meta-postgis
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=latest,suffix=-postgis
type=sha,format=short,suffix=-postgis
type=raw,value={{date 'YYYYMMDD'}},suffix=-postgis

- name: Build and push Docker image - Standard
uses: docker/build-push-action@v5
with:
context: .
build-args: |
BASE_IMAGE_TAG=2.6.0-ppg16.8-postgres
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Build and push Docker image - PostGIS
uses: docker/build-push-action@v5
with:
context: .
build-args: |
BASE_IMAGE_TAG=2.6.0-ppg16.8-postgres-gis3.3.8
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta-postgis.outputs.tags }}
labels: ${{ steps.meta-postgis.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM percona/percona-postgresql-operator:2.6.0-ppg16.8-postgres
ARG BASE_IMAGE_TAG=2.6.0-ppg16.8-postgres
FROM percona/percona-postgresql-operator:${BASE_IMAGE_TAG}

# Switch to root user temporarily to gain necessary privileges for setup
USER 0
Expand Down