Skip to content

Commit

Permalink
Merge pull request #156 from flavio-fernandes/use_ghcr.io
Browse files Browse the repository at this point in the history
Use Github Container Repository
  • Loading branch information
SalDaniele authored Oct 18, 2024
2 parents a9dbf20 + c9befd1 commit 3670104
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 3670104

Please sign in to comment.