Skip to content

Commit

Permalink
testtag
Browse files Browse the repository at this point in the history
  • Loading branch information
shweta50 committed Sep 18, 2024
1 parent 0c884de commit 410c561
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/hostplumber-multiarch-build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,13 @@ jobs:
run: echo ${{ github.run_number }}

- name: Set env
run:
echo "TAG=$(echo "${{ env.BRANCH }}" | tr -d /)" >> $GITHUB_ENV

run:
if startsWith(github.head_ref, 'v')
echo "TAG=$(echo "${{ env.BRANCH }}") >> $GITHUB_ENV
else
echo "TAG=$(echo "${{ env.BRANCH }}" | tr -d /)"-${{ github.run_number }} >> $GITHUB_ENV
fi

- uses: actions/checkout@v3

- name: Setup Docker BuildX
Expand All @@ -52,7 +56,7 @@ jobs:
uses: docker/build-push-action@v3
with:
context: hostplumber
tags: quay.io/platform9/hostplumber:${{ env.TAG }}-${{ github.run_number }}
tags: quay.io/platform9/hostplumber:${{ env.TAG }}
push: ${{ env.PUSH }}
build-args: ${{ env.BUILD_ARGS}}
platforms: ${{ env.PLATFORMS }}

0 comments on commit 410c561

Please sign in to comment.