From 69a10492b7c6d93199069520ab10a9fa057c9762 Mon Sep 17 00:00:00 2001 From: antarcticrainforest Date: Thu, 20 Feb 2025 12:53:01 +0100 Subject: [PATCH] Try a different image path for dev versions. --- .github/workflows/build_job.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_job.yml b/.github/workflows/build_job.yml index b1214a8..1b49008 100644 --- a/.github/workflows/build_job.yml +++ b/.github/workflows/build_job.yml @@ -13,6 +13,7 @@ jobs: runs-on: ubuntu-latest outputs: is_prerelease: ${{ steps.check-prerelease.outputs.is_prerelease }} + image: ${{ steps.check-prerelease.outputs.image }} tag: ${{ steps.get-tag.outputs.tag }} steps: - name: Checkout repository @@ -30,9 +31,11 @@ jobs: if [[ "$TAG" == *"-dev"* || "$TAG" == *"-beta"* || "$TAG" == *"-alpha"* ]]; then echo "This is a pre-release tag." echo "is_prerelease=true" >> $GITHUB_OUTPUT + echo "image=ghcr.io/freva-clint/freva-rest-api-dev" >> $GITHUB_OUTPUT else echo "This is not a pre-release tag." echo "is_prerelease=false" >> $GITHUB_OUTPUT + echo "image=ghcr.io/freva-clint/freva-rest-api" >> $GITHUB_OUTPUT fi tests: uses: ./.github/workflows/ci_job.yml @@ -123,8 +126,8 @@ jobs: push: true no-cache: true tags: | - ghcr.io/freva-clint/freva-rest-api:${{ needs.release-type-determination.outputs.tag }} - ghcr.io/freva-clint/freva-rest-api:${{ needs.release-type-determination.outputs.is_prerelease == 'false' && 'latest' || needs.release-type-determination.outputs.tag }} + ${{ needs.realease-type-determination.outputs.image}}:${{ needs.release-type-determination.outputs.tag }} + ${{ needs.realease-type-determination.outputs.image}}:${{ needs.release-type-determination.outputs.is_prerelease == 'false' && 'latest' || needs.release-type-determination.outputs.tag }} pypi: