Skip to content

Commit 44c8b85

Browse files
niladrihKiran Mova
authored andcommitted
Add GHCR build and push steps to build.yml and release.yml
Signed-off-by: Niladri Halder <[email protected]>
1 parent 2936df8 commit 44c8b85

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
@@ -163,6 +163,7 @@ jobs:
163163
images: |
164164
${{ env.IMAGE_ORG }}/lvm-driver
165165
quay.io/${{ env.IMAGE_ORG }}/lvm-driver
166+
ghcr.io/${{ env.IMAGE_ORG }}/lvm-driver
166167
tag-latest: false
167168
tag-custom-only: true
168169
tag-custom: |
@@ -197,6 +198,13 @@ jobs:
197198
username: ${{ secrets.QUAY_USERNAME }}
198199
password: ${{ secrets.QUAY_TOKEN }}
199200

201+
- name: Login to GHCR
202+
uses: docker/login-action@v1
203+
with:
204+
registry: ghcr.io
205+
username: ${{ github.actor }}
206+
password: ${{ secrets.GITHUB_TOKEN }}
207+
200208
- name: Build & Push Image
201209
uses: docker/build-push-action@v2
202210
with:

.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 }}/lvm-driver
5353
quay.io/${{ env.IMAGE_ORG }}/lvm-driver
54+
ghcr.io/${{ env.IMAGE_ORG }}/lvm-driver
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 & Push Image
8896
uses: docker/build-push-action@v2
8997
with:

0 commit comments

Comments
 (0)