From 8553c46140e18a3039d884d5fcaf868089d38d2f Mon Sep 17 00:00:00 2001 From: Vladimir Tarbaev Date: Sun, 6 Oct 2024 22:36:16 +0300 Subject: [PATCH] #192 fix ghcr registry name --- .github/workflows/ci.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ec045302..37dc4530 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,6 +19,7 @@ env: python-version: 'pypy3.10' cmd-name: 'greenmask' docker-io-registry: greenmask + docker-ghcr-registry: greenmaskio docker-image-name: greenmask jobs: @@ -154,7 +155,7 @@ jobs: uses: docker/login-action@v3 with: registry: ghcr.io - username: ${{ github.actor }} + username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - name: Get Git tag @@ -168,7 +169,9 @@ jobs: context: . platforms: linux/amd64,linux/arm64 push: true - tags: ${{ env.docker-io-registry }}/${{ env.docker-image-name }}:${{ env.TAG }},ghcr.io/${{ github.repository }}:${{ env.TAG }} + tags: | + ${{ env.docker-io-registry }}/${{ env.docker-image-name }}:${{ env.TAG }} + ghcr.io/${{ env.docker-ghcr-registry }}/${{ env.docker-image-name }}:${{ env.TAG }} - name: Build docker imaget with latest tag and push uses: docker/build-push-action@v5 @@ -183,7 +186,9 @@ jobs: context: . platforms: linux/amd64,linux/arm64 push: true - tags: ${{ env.docker-io-registry }}/${{ env.docker-image-name }}:latest,ghcr.io/${{ github.repository }}:latest + tags: | + ${{ env.docker-io-registry }}/${{ env.docker-image-name }}:latest + ghcr.io/${{ env.docker-ghcr-registry }}/${{ env.docker-image-name }}:latest deploy-docs: runs-on: self-hosted