Skip to content

Commit

Permalink
chore(workflow): push images to ghcr (#16)
Browse files Browse the repository at this point in the history

Signed-off-by: Akhil Mohan <[email protected]>
  • Loading branch information
akhilerm authored Jul 21, 2021
1 parent 83043c8 commit 83201c9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jobs:
images: |
${{ env.IMAGE_ORG }}/linux-utils
quay.io/${{ env.IMAGE_ORG }}/linux-utils
ghcr.io/${{ env.IMAGE_ORG }}/linux-utils
tag-latest: false
tag-custom-only: true
tag-custom: |
Expand Down Expand Up @@ -83,6 +84,13 @@ jobs:
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_TOKEN }}

- name: Login to GHCR
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build & Push Image
uses: docker/build-push-action@v2
with:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
images: |
${{ env.IMAGE_ORG }}/linux-utils
quay.io/${{ env.IMAGE_ORG }}/linux-utils
ghcr.io/${{ env.IMAGE_ORG }}/linux-utils
tag-latest: true
tag-semver: |
{{version}}
Expand Down Expand Up @@ -82,6 +83,13 @@ jobs:
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_TOKEN }}

- name: Login to GHCR
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build & Push Image
uses: docker/build-push-action@v2
with:
Expand Down

0 comments on commit 83201c9

Please sign in to comment.