Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
shweta50 committed Sep 18, 2024
1 parent 3c3260a commit 0c884de
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/hostplumber-multiarch-build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ on:
- 'master'
- 'v*'
- 'private/**'
paths:
- hostplumber/**

jobs:
buildx:
Expand All @@ -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
Expand All @@ -36,17 +41,18 @@ 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 }}

- name: Build/Push image to Docker Container Registry
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 }}

0 comments on commit 0c884de

Please sign in to comment.