mirror of
https://github.com/TECHNOFAB11/zfs-localpv.git
synced 2025-12-12 06:20:11 +01:00
Add GHCR build and push steps to build.yml and release.yml
Signed-off-by: Niladri Halder <niladri.halder@mayadata.io>
This commit is contained in:
parent
605d075b9f
commit
5ebd8a7c18
2 changed files with 16 additions and 0 deletions
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
|
|
@ -167,6 +167,7 @@ jobs:
|
|||
images: |
|
||||
${{ env.IMAGE_ORG }}/zfs-driver
|
||||
quay.io/${{ env.IMAGE_ORG }}/zfs-driver
|
||||
ghcr.io/${{ env.IMAGE_ORG }}/zfs-driver
|
||||
tag-latest: false
|
||||
tag-custom-only: true
|
||||
tag-custom: |
|
||||
|
|
@ -201,6 +202,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:
|
||||
|
|
|
|||
8
.github/workflows/release.yml
vendored
8
.github/workflows/release.yml
vendored
|
|
@ -53,6 +53,7 @@ jobs:
|
|||
images: |
|
||||
${{ env.IMAGE_ORG }}/zfs-driver
|
||||
quay.io/${{ env.IMAGE_ORG }}/zfs-driver
|
||||
ghcr.io/${{ env.IMAGE_ORG }}/zfs-driver
|
||||
tag-latest: true
|
||||
tag-semver: |
|
||||
{{version}}
|
||||
|
|
@ -110,6 +111,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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue