Skip to content

Commit

Permalink
Only apply revision to main builds
Browse files Browse the repository at this point in the history
  • Loading branch information
APErebus committed Oct 1, 2024
1 parent 5fe0af8 commit 522a67c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build-and-publish-container-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,12 @@ jobs:
if [[ "${{steps.branch_names.outputs.branch_name}}" != "main" ]]
then
preRelease="-${{steps.branch_names.outputs.branch_name}}-$(date +'%Y%m%d%H%M%S')"
else
revision="-${{ needs.versions.outputs.revision }}"
fi
revision="-${{ needs.versions.outputs.revision }}"
tagVersion="$kubernetesVersion$revision$preRelease";
echo "tagVersion=$tagVersion" >> $GITHUB_OUTPUT;
echo "tagVersion=$tagVersion";
Expand Down

0 comments on commit 522a67c

Please sign in to comment.