diff --git a/.github/workflows/on-prerelease.yml b/.github/workflows/on-prerelease.yml index e0b68177e..06395e7ac 100644 --- a/.github/workflows/on-prerelease.yml +++ b/.github/workflows/on-prerelease.yml @@ -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" @@ -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 @@ -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" @@ -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