Skip to content

Commit

Permalink
Try a different image path for dev versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
antarcticrainforest committed Feb 20, 2025
1 parent a6ef4da commit 69a1049
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build_job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 69a1049

Please sign in to comment.