diff --git a/.github/workflows/hostplumber-multiarch-build-and-push.yml b/.github/workflows/hostplumber-multiarch-build-and-push.yml index a4f7f8a3..708e8a2b 100644 --- a/.github/workflows/hostplumber-multiarch-build-and-push.yml +++ b/.github/workflows/hostplumber-multiarch-build-and-push.yml @@ -6,8 +6,6 @@ on: - 'master' - 'v*' - 'private/**' - paths: - - hostplumber/** jobs: buildx: @@ -20,6 +18,13 @@ jobs: PUSH: true runs-on: ubuntu-latest steps: + - name: print quay creds + run: + echo ${{ env.USERNAME }} ${{ env.PASSWORD }} + + - name: Output Run NUMBER + run: echo ${{ github.run_number }} + - name: Set env run: echo "TAG=$(echo "${{ env.BRANCH }}" | tr -d /)" >> $GITHUB_ENV @@ -36,9 +41,10 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - - name: Login to the Docker Registry + - name: Login to the Quay Registry uses: docker/login-action@v1 with: + registry: quay.io username: ${{ env.USERNAME }} password: ${{ env.PASSWORD }} @@ -46,7 +52,7 @@ jobs: uses: docker/build-push-action@v3 with: context: hostplumber - tags: quay.io/platform9/hostplumber:${{ env.TAG }} + tags: quay.io/platform9/hostplumber:${{ env.TAG }}-${{ github.run_number }} push: ${{ env.PUSH }} build-args: ${{ env.BUILD_ARGS}} platforms: ${{ env.PLATFORMS }}