Skip to content

Commit

Permalink
temp no latest tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Dzejkop committed Jul 18, 2024
1 parent 925e530 commit e262cb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
echo "docker_tags=${{ env.REGISTRY }}/${{ env.LOWER_REPO }}:nightly,${{ env.REGISTRY }}/${{ env.LOWER_REPO }}:nightly-${GITHUB_SHA}" >> $GITHUB_OUTPUT
elif [[ "${GITHUB_REF##*/}" == "main" ]] || [[ ${GITHUB_REF##*/} == "master" ]]; then
echo "manual trigger from master/main branch, assigning latest tag"
echo "docker_tags=${{ env.REGISTRY }}/${{ env.LOWER_REPO }}:${GITHUB_REF##*/},${{ env.REGISTRY }}/${{ env.LOWER_REPO }}:latest" >> $GITHUB_OUTPUT
echo "docker_tags=${{ env.REGISTRY }}/${{ env.LOWER_REPO }}:${GITHUB_REF##*/}" >> $GITHUB_OUTPUT
else
echo "Neither scheduled nor manual release from main branch. Just tagging as branch name"
echo "docker_tags=${{ env.REGISTRY }}/${{ env.LOWER_REPO }}:${GITHUB_REF##*/}" >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -93,7 +93,7 @@ jobs:
echo "docker_tags=${{ env.REGISTRY }}/${{ env.LOWER_REPO }}:nightly,${{ env.REGISTRY }}/${{ env.LOWER_REPO }}:nightly-${GITHUB_SHA}" >> $GITHUB_OUTPUT
elif [[ "${GITHUB_REF##*/}" == "main" ]] || [[ ${GITHUB_REF##*/} == "master" ]]; then
echo "manual trigger from master/main branch, assigning latest tag"
echo "docker_tags=${{ env.REGISTRY }}/${{ env.LOWER_REPO }}:${GITHUB_REF##*/},${{ env.REGISTRY }}/${{ env.LOWER_REPO }}:latest" >> $GITHUB_OUTPUT
echo "docker_tags=${{ env.REGISTRY }}/${{ env.LOWER_REPO }}:${GITHUB_REF##*/}" >> $GITHUB_OUTPUT
else
echo "Neither scheduled nor manual release from main branch. Just tagging as branch name"
echo "docker_tags=${{ env.REGISTRY }}/${{ env.LOWER_REPO }}:${GITHUB_REF##*/}" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit e262cb0

Please sign in to comment.