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:
Niladri Halder 2021-09-13 16:07:33 +05:30 committed by Kiran Mova
parent 605d075b9f
commit 5ebd8a7c18
2 changed files with 16 additions and 0 deletions

View file

@ -167,6 +167,7 @@ jobs:
images: | images: |
${{ env.IMAGE_ORG }}/zfs-driver ${{ env.IMAGE_ORG }}/zfs-driver
quay.io/${{ env.IMAGE_ORG }}/zfs-driver quay.io/${{ env.IMAGE_ORG }}/zfs-driver
ghcr.io/${{ env.IMAGE_ORG }}/zfs-driver
tag-latest: false tag-latest: false
tag-custom-only: true tag-custom-only: true
tag-custom: | tag-custom: |
@ -201,6 +202,13 @@ jobs:
username: ${{ secrets.QUAY_USERNAME }} username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_TOKEN }} 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 - name: Build & Push Image
uses: docker/build-push-action@v2 uses: docker/build-push-action@v2
with: with:

View file

@ -53,6 +53,7 @@ jobs:
images: | images: |
${{ env.IMAGE_ORG }}/zfs-driver ${{ env.IMAGE_ORG }}/zfs-driver
quay.io/${{ env.IMAGE_ORG }}/zfs-driver quay.io/${{ env.IMAGE_ORG }}/zfs-driver
ghcr.io/${{ env.IMAGE_ORG }}/zfs-driver
tag-latest: true tag-latest: true
tag-semver: | tag-semver: |
{{version}} {{version}}
@ -110,6 +111,13 @@ jobs:
username: ${{ secrets.QUAY_USERNAME }} username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_TOKEN }} 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 - name: Build & Push Image
uses: docker/build-push-action@v2 uses: docker/build-push-action@v2
with: with: