Skip to content

Commit 83201c9

Browse files
authored
chore(workflow): push images to ghcr (#16)
Signed-off-by: Akhil Mohan <[email protected]>
1 parent 83043c8 commit 83201c9

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ jobs:
5050
images: |
5151
${{ env.IMAGE_ORG }}/linux-utils
5252
quay.io/${{ env.IMAGE_ORG }}/linux-utils
53+
ghcr.io/${{ env.IMAGE_ORG }}/linux-utils
5354
tag-latest: false
5455
tag-custom-only: true
5556
tag-custom: |
@@ -83,6 +84,13 @@ jobs:
8384
username: ${{ secrets.QUAY_USERNAME }}
8485
password: ${{ secrets.QUAY_TOKEN }}
8586

87+
- name: Login to GHCR
88+
uses: docker/login-action@v1
89+
with:
90+
registry: ghcr.io
91+
username: ${{ github.actor }}
92+
password: ${{ secrets.GITHUB_TOKEN }}
93+
8694
- name: Build & Push Image
8795
uses: docker/build-push-action@v2
8896
with:

.github/workflows/release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ jobs:
4949
images: |
5050
${{ env.IMAGE_ORG }}/linux-utils
5151
quay.io/${{ env.IMAGE_ORG }}/linux-utils
52+
ghcr.io/${{ env.IMAGE_ORG }}/linux-utils
5253
tag-latest: true
5354
tag-semver: |
5455
{{version}}
@@ -82,6 +83,13 @@ jobs:
8283
username: ${{ secrets.QUAY_USERNAME }}
8384
password: ${{ secrets.QUAY_TOKEN }}
8485

86+
- name: Login to GHCR
87+
uses: docker/login-action@v1
88+
with:
89+
registry: ghcr.io
90+
username: ${{ github.actor }}
91+
password: ${{ secrets.GITHUB_TOKEN }}
92+
8593
- name: Build & Push Image
8694
uses: docker/build-push-action@v2
8795
with:

0 commit comments

Comments
 (0)