Skip to content

Commit bef4597

Browse files
niladrihKiran Mova
authored andcommitted
Add GHCR login as a part of Build and Release
Signed-off-by: Niladri Halder <[email protected]>
1 parent 7160ede commit bef4597

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
@@ -99,6 +99,7 @@ jobs:
9999
images: |
100100
${{ env.IMAGE_ORG }}/provisioner-localpv
101101
quay.io/${{ env.IMAGE_ORG }}/provisioner-localpv
102+
ghcr.io/${{ env.IMAGE_ORG }}/provisioner-localpv
102103
tag-latest: false
103104
tag-custom-only: true
104105
tag-custom: |
@@ -132,6 +133,13 @@ jobs:
132133
username: ${{ secrets.QUAY_USERNAME }}
133134
password: ${{ secrets.QUAY_TOKEN }}
134135

136+
- name: Login to GHCR
137+
uses: docker/login-action@v1
138+
with:
139+
registry: ghcr.io
140+
username: ${{ github.actor }}
141+
password: ${{ secrets.GITHUB_TOKEN }}
142+
135143
- name: Checkout
136144
uses: actions/checkout@v2
137145

.github/workflows/release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ jobs:
5151
images: |
5252
${{ env.IMAGE_ORG }}/provisioner-localpv
5353
quay.io/${{ env.IMAGE_ORG }}/provisioner-localpv
54+
ghcr.io/${{ env.IMAGE_ORG }}/provisioner-localpv
5455
tag-latest: true
5556
tag-semver: |
5657
{{version}}
@@ -84,6 +85,13 @@ jobs:
8485
username: ${{ secrets.QUAY_USERNAME }}
8586
password: ${{ secrets.QUAY_TOKEN }}
8687

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

0 commit comments

Comments
 (0)