Skip to content

Commit

Permalink
Fix pipeline tags.
Browse files Browse the repository at this point in the history
  • Loading branch information
antarcticrainforest committed Jul 31, 2024
1 parent 603e1b7 commit b9bdbce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build_job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ jobs:
TAG=${{ steps.repository.outputs.tag }}
if [[ "$TAG" == *"-dev"* || "$TAG" == *"-beta"* || "$TAG" == *"-alpha"* ]]; then
echo "This is a pre-release tag."
echo "IS_PRERELEASE=true" >> $GITHUB_ENV
echo "LATEST_TAG=${{ steps.repository.outputs.tag }}" >> $GITHUB_ENV
else
echo "This is not a pre-release tag."
echo "IS_PRERELEASE=false" >> $GITHUB_ENV
echo "LATEST_TAG=latest" >> $GITHUB_ENV
fi
-
Expand Down Expand Up @@ -119,7 +119,7 @@ jobs:
push: true
tags: |
ghcr.io/freva-clint/freva-rest-api:${{ steps.repository.outputs.tag }}
${{ if eq(env.IS_PRERELEASE, 'false') }}ghcr.io/freva-clint/freva-rest-api:latest
ghcr.io/freva-clint/freva-rest-api:${{ env.LATEST_TAG }}
pypi:
name: Create Pip package
permissions:
Expand Down

0 comments on commit b9bdbce

Please sign in to comment.