Skip to content

Commit

Permalink
Use Github Container Repository
Browse files Browse the repository at this point in the history
Signed-off-by: Flavio Fernandes <ffernandes@nvidia.com>
  • Loading branch information
flavio-fernandes committed Oct 17, 2024
1 parent a9dbf20 commit c9befd1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,14 @@ jobs:
- name: Set up Docker Buildx
run: |
docker buildx create --use
- name: Authenticate
uses: docker/login-action@v1
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}
- name: Build and Push Multiarch image
- name: Log in to GitHub Container Registry
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Build and Push Multiarch Image to ghcr.io
run: |
docker buildx build \
--file ./Containerfile \
--platform linux/arm64,linux/amd64\
--tag quay.io/wizhao/tft-tools:latest \
--push .
--platform linux/arm64,linux/amd64 \
--tag ghcr.io/${{ github.repository_owner }}/ocp-traffic-flow-tests:pr_test \
--push \
.
4 changes: 2 additions & 2 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ jobs:
run: |
docker buildx build \
--file ./Containerfile \
--platform linux/arm64,linux/amd64\
--tag quay.io/wizhao/tft-tools:pr_test \
--platform linux/arm64,linux/amd64 \
--tag ghcr.io/${{ github.repository_owner }}/ocp-traffic-flow-tests:pr_test \
.

0 comments on commit c9befd1

Please sign in to comment.