From d3ad0eaf01546b4a28cad41b0cd5626b983d63c7 Mon Sep 17 00:00:00 2001 From: Juan Calderon-Perez <835733+gaby@users.noreply.github.com> Date: Tue, 26 Oct 2021 16:29:17 -0400 Subject: [PATCH] Support for ghcr.io container registry (#99) --- .github/workflows/image-build-push.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/image-build-push.yaml b/.github/workflows/image-build-push.yaml index 11e6884..7808175 100644 --- a/.github/workflows/image-build-push.yaml +++ b/.github/workflows/image-build-push.yaml @@ -25,6 +25,7 @@ jobs: with: images: | dtzar/helm-kubectl + ghcr.io/dtzar/helm-kubectl tags: | type=raw,value=latest,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }} type=ref,event=branch @@ -45,6 +46,14 @@ jobs: with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} + - + name: Login to GitHub Container Registry + if: github.event_name != 'pull_request' + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push uses: docker/build-push-action@v2