From 60192a12f786afa4041603f278d78fef6bbc96d5 Mon Sep 17 00:00:00 2001 From: Nigel Jones Date: Fri, 22 Oct 2021 12:36:21 +0100 Subject: [PATCH] Publish to quay.io Signed-off-by: Nigel Jones --- .github/workflows/merge.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/merge.yml b/.github/workflows/merge.yml index 6a2be6e..93af26c 100644 --- a/.github/workflows/merge.yml +++ b/.github/workflows/merge.yml @@ -63,6 +63,13 @@ jobs: username: ${{ secrets.DOCKER_HUB_USERNAME }} password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} if: ${{ github.event_name == 'push' && github.repository == 'odpi/egeria-connector-sas-viya' }} + - name: Login to container registry (Quay.io) + uses: docker/login-action@v1 + with: + registry: quay.io + username: ${{ secrets.QUAY_IO_USERNAME }} + password: ${{ secrets.QUAY_IO_ACCESS_TOKEN }} + if: ${{ github.event_name == 'push' && github.repository == 'odpi/egeria-connector-sas-viya' }} # For releases (ie not main) - name: Build and push (not main merge) if: github.ref != 'refs/heads/main' @@ -70,7 +77,7 @@ jobs: uses: docker/build-push-action@v2 with: push: ${{ github.event_name == 'push' && github.repository == 'odpi/egeria-connector-sas-viya' }} - tags: odpi/egeria-connector-sas-viya:${{env.RELEASE_VERSION}} + tags: odpi/egeria-connector-sas-viya:${{env.RELEASE_VERSION}}, quay.io/odpi/egeria-connector-sas-viya:${{env.RELEASE_VERSION}} build-args: version=${{ env.RELEASE_VERSION }} context: . file: ./Dockerfile @@ -81,7 +88,7 @@ jobs: uses: docker/build-push-action@v2 with: push: ${{ github.event_name == 'push' && github.repository == 'odpi/egeria-connector-sas-viya' }} - tags: odpi/egeria-connector-sas-viya:${{ env.RELEASE_VERSION}}, odpi/egeria-connector-sas-viya:latest + tags: odpi/egeria-connector-sas-viya:${{ env.RELEASE_VERSION}}, odpi/egeria-connector-sas-viya:latest, quay.io/odpi/egeria-connector-sas-viya:${{ env.RELEASE_VERSION}}, quay.io/odpi/egeria-connector-sas-viya:latest build-args: version=${{ env.RELEASE_VERSION }} context: . file: ./Dockerfile