4848 run : echo "tag=${{ matrix.platform == 'amd64' && ' latest' || format(' latest-{0}', matrix.platform) }}" >> $GITHUB_OUTPUT
4949
5050 - name : Build image Postgres
51- id : build
51+ id : buildpg
5252 uses : redhat-actions/buildah-build@v2
5353 with :
5454 image : postgres-autoconf
6262 VCS_REF=${{ github.sha }}
6363 BASE_TAG=${{ matrix.pg_version }}-alpine
6464
65- - name : Push image Postgres to GHCR
66- uses : redhat-actions/push-to-registry@v2
67- with :
68- image : ${{ steps.build.outputs.image }}
69- tags : ${{ steps.build.outputs.tags }}
70- registry : ghcr.io/openspp
71- username : ${{ github.actor }}
72- password : ${{ secrets.GITHUB_TOKEN }}
73-
7465 - name : Build image PostGIS
75- id : build
66+ id : buildpgis
7667 uses : redhat-actions/buildah-build@v2
7768 with :
7869 image : postgis-autoconf
@@ -86,11 +77,20 @@ jobs:
8677 VCS_REF=${{ github.sha }}
8778 BASE_TAG=${{ matrix.pg_version }}-alpine
8879
80+ - name : Push image Postgres to GHCR
81+ uses : redhat-actions/push-to-registry@v2
82+ with :
83+ image : ${{ steps.buildpg.outputs.image }}
84+ tags : ${{ steps.buildpg.outputs.tags }}
85+ registry : ghcr.io/openspp
86+ username : ${{ github.actor }}
87+ password : ${{ secrets.GITHUB_TOKEN }}
88+
8989 - name : Push image PostGIS to GHCR
9090 uses : redhat-actions/push-to-registry@v2
9191 with :
92- image : ${{ steps.build .outputs.image }}
93- tags : ${{ steps.build .outputs.tags }}
92+ image : ${{ steps.buildpgis .outputs.image }}
93+ tags : ${{ steps.buildpgis .outputs.tags }}
9494 registry : ghcr.io/openspp
9595 username : ${{ github.actor }}
9696 password : ${{ secrets.GITHUB_TOKEN }}
0 commit comments