From 5ebd8a7c18ae4fe84730fef8d7b98870809be633 Mon Sep 17 00:00:00 2001 From: Niladri Halder Date: Mon, 13 Sep 2021 16:07:33 +0530 Subject: [PATCH] Add GHCR build and push steps to build.yml and release.yml Signed-off-by: Niladri Halder --- .github/workflows/build.yml | 8 ++++++++ .github/workflows/release.yml | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6e2539f..5ebe01c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9a706c0..b7339f0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: