Skip to content

Commit

Permalink
feat: publish extension only docker image
Browse files Browse the repository at this point in the history
closes #31

Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
  • Loading branch information
yordis committed Mar 23, 2024
1 parent 0396caa commit d87b058
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,16 @@ jobs:
with:
context: .
push: true
target: env-deploy
tags: |
ghcr.io/${{ github.repository }}:latest
ghcr.io/${{ github.repository }}:${{ env.BUILD_VERSION }}
- name: Build and push tagged Docker image
uses: docker/build-push-action@v3
with:
context: .
push: true
target: extension-deploy
tags: |
ghcr.io/${{ github.repository }}:latest-extension
ghcr.io/${{ github.repository }}:${{ env.BUILD_VERSION }}-extension
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,9 @@ COPY --from=0 /srv/pg_uuidv7.tar.gz /srv/SHA256SUMS /srv/
COPY --from=0 /srv/${PG_MAJOR}/pg_uuidv7.so /usr/lib/postgresql/${PG_MAJOR}/lib
COPY --from=0 /srv/pg_uuidv7.control /usr/share/postgresql/${PG_MAJOR}/extension
COPY --from=0 /srv/pg_uuidv7--1.5.sql /usr/share/postgresql/${PG_MAJOR}/extension

FROM scratch AS extension-deploy

COPY --from=0 /srv/${PG_MAJOR}/pg_uuidv7.so /usr/lib/postgresql/${PG_MAJOR}/lib
COPY --from=0 /srv/pg_uuidv7.control /usr/share/postgresql/${PG_MAJOR}/extension
COPY --from=0 /srv/pg_uuidv7--1.5.sql /usr/share/postgresql/${PG_MAJOR}/extension

0 comments on commit d87b058

Please sign in to comment.