Skip to content

Commit

Permalink
fix(ci): try to set a good imagetage (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
gsanchietti committed Jan 13, 2025
1 parent 095f03e commit 5060fe6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,9 @@ jobs:
- id: fix-imagetag
run: |
# Fix imagetag
# If it's a PR and the author is renovate bot, use "renovate<PR_NUMBER>" as IMAGETAG
if [[ "${{ github.actor }}" == "renovate[bot]" && "${{ github.ref_name }}" != "main" ]]; then
export IMAGETAG="renovate${{ github.event.number }}"
# set imagetag to the env so it can be used in the next steps
# If it's a PR and the author is renovate bot, use "renovate<number>" as IMAGETAG
if [[ "${{ github.actor }}" == "renovate[bot]" && "${{ github.ref_name }}" != "main" ]]; then
export IMAGETAG="renovate${{ github.run_id }}"
echo "IMAGETAG=${IMAGETAG}" >> $GITHUB_ENV
fi
- id: publish
Expand Down

0 comments on commit 5060fe6

Please sign in to comment.