From 0b7ef3eed065a858c5bfefe1fd7495161402f1d6 Mon Sep 17 00:00:00 2001 From: Carlos Panato Date: Tue, 16 Mar 2021 14:15:04 +0100 Subject: [PATCH] remove quay.io Signed-off-by: Carlos Panato --- .github/workflows/publish.yml | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ea42c30..bbfa735 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -41,20 +41,18 @@ jobs: uses: docker/setup-qemu-action@v1 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 + - name: Get Repo Owner + id: get_repo_owner + run: echo ::set-output name=repo_owner::$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]') - name: Get TAG id: get_tag run: echo ::set-output name=TAG::${GITHUB_REF#refs/tags/} - - name: Login to DockerHub + - name: Login to GHCR Registry uses: docker/login-action@v1 with: - username: ${{ secrets.DOCKER_USERNAME }} + username: ${{ github.repository_owner }} password: ${{ secrets.DOCKER_PASSWORD }} - - name: Login to Quay.io - uses: docker/login-action@v1 - with: - username: ${{ secrets.QUAY_USERNAME }} - password: ${{ secrets.QUAY_PASSWORD }} - registry: quay.io + registry: ghcr.io - name: Build and push uses: docker/build-push-action@v2 with: @@ -62,9 +60,6 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | - alexellis/derek:latest - alexellis/derek:${{ steps.get_tag.outputs.TAG }} - alexellis/derek:${{ github.sha }} - quay.io/alexellis/derek:latest - quay.io/alexellis/derek:${{ steps.get_tag.outputs.TAG }} - quay.io/alexellis/derek:${{ github.sha }} + ghcr.io/${{ steps.get_repo_owner.outputs.repo_owner }}/derek:${{ steps.get_tag.outputs.TAG }} + ghcr.io/${{ steps.get_repo_owner.outputs.repo_owner }}/derek:${{ github.sha }} + ghcr.io/${{ steps.get_repo_owner.outputs.repo_owner }}/derek:latest