Skip to content

Commit

Permalink
remove quay.io
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
  • Loading branch information
cpanato committed Mar 16, 2021
1 parent 0df351e commit 0b7ef3e
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,30 +41,25 @@ 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:
context: .
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

0 comments on commit 0b7ef3e

Please sign in to comment.