Skip to content
Draft
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
17 changes: 16 additions & 1 deletion .github/workflows/on-prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ jobs:
# Pre-releases get the tag "pre"
APITAGS="${{ env.IMAGE_NAME }}:pre"
DBTAGS="${{ env.DATABASE_IMAGE_NAME }}:pre"
DBTAGSV1="${{ env.DATABASE_IMAGE_NAME }}:pre-1.3"
else
# Releases get the version, plus shortened form for minor release.
# We are not using shortened form for major or using "latest"
Expand All @@ -294,6 +295,7 @@ jobs:
SEMVERSION=${PACKAGEVERSION:1} # strip off the leading 'v'
echo "APITAGS=$APITAGS" >> $GITHUB_OUTPUT
echo "DBTAGS=$DBTAGS" >> $GITHUB_OUTPUT
echo "DBTAGSV1=$DBTAGSV1" >> $GITHUB_OUTPUT
echo "VERSION=$SEMVERSION" >> $GITHUB_OUTPUT

- name: Set up Docker Buildx
Expand Down Expand Up @@ -331,7 +333,7 @@ jobs:
with:
images: ${{ env.DATABASE_IMAGE_NAME }}

- name: Build and push admin api database image
- name: Build and push admin api database image for V2
uses: docker/build-push-action@b32b51a8eda65d6793cd0494a773d4f6bcef32dc # v6.11.0
with:
context: "{{defaultContext}}:Docker/Settings/V2/DB-Admin/pgsql"
Expand All @@ -342,3 +344,16 @@ jobs:
tags: ${{ steps.prepare-tags.outputs.DBTAGS }}
labels: ${{ steps.metadatabase.outputs.labels }}
push: true

- name: Build and push admin api database image for V1
if: contains(env.REF, 'Pre-Release')
uses: docker/build-push-action@b32b51a8eda65d6793cd0494a773d4f6bcef32dc # v6.11.0
with:
context: "{{defaultContext}}:Docker/Settings/V1/DB-Admin/pgsql"
cache-from: type=registry,ref=${{ env.DATABASE_IMAGE_NAME }}:pre-1.3
cache-to: type=inline
build-args: ADMIN_API_VERSION=${{ steps.prepare-tags.outputs.VERSION }}
file: Dockerfile
tags: ${{ steps.prepare-tags.outputs.DBTAGSV1 }}
labels: ${{ steps.metadatabase.outputs.labels }}
push: true
Loading