Skip to content

Commit 6356e02

Browse files
authored
Merge pull request #1 from superfly/akshit/postgis
Add postgis image
2 parents 78f949b + 628e09f commit 6356e02

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

.github/workflows/build-and-push.yml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,38 @@ jobs:
4646
type=sha,format=short
4747
type=raw,value={{date 'YYYYMMDD'}}
4848
49-
- name: Build and push Docker image
49+
- name: Extract metadata for Docker - PostGIS
50+
id: meta-postgis
51+
uses: docker/metadata-action@v5
52+
with:
53+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
54+
tags: |
55+
type=raw,value=latest,suffix=-postgis
56+
type=sha,format=short,suffix=-postgis
57+
type=raw,value={{date 'YYYYMMDD'}},suffix=-postgis
58+
59+
- name: Build and push Docker image - Standard
5060
uses: docker/build-push-action@v5
5161
with:
5262
context: .
63+
build-args: |
64+
BASE_IMAGE_TAG=2.6.0-ppg16.8-postgres
5365
platforms: linux/amd64,linux/arm64
5466
push: true
5567
tags: ${{ steps.meta.outputs.tags }}
5668
labels: ${{ steps.meta.outputs.labels }}
5769
cache-from: type=gha
5870
cache-to: type=gha,mode=max
71+
72+
- name: Build and push Docker image - PostGIS
73+
uses: docker/build-push-action@v5
74+
with:
75+
context: .
76+
build-args: |
77+
BASE_IMAGE_TAG=2.6.0-ppg16.8-postgres-gis3.3.8
78+
platforms: linux/amd64,linux/arm64
79+
push: true
80+
tags: ${{ steps.meta-postgis.outputs.tags }}
81+
labels: ${{ steps.meta-postgis.outputs.labels }}
82+
cache-from: type=gha
83+
cache-to: type=gha,mode=max

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
FROM percona/percona-postgresql-operator:2.6.0-ppg16.8-postgres
1+
ARG BASE_IMAGE_TAG=2.6.0-ppg16.8-postgres
2+
FROM percona/percona-postgresql-operator:${BASE_IMAGE_TAG}
23

34
# Switch to root user temporarily to gain necessary privileges for setup
45
USER 0

0 commit comments

Comments
 (0)