From 7511e5ca178df5c52ff9ac944ccb78fa78b8e8be Mon Sep 17 00:00:00 2001 From: Nigel Jones Date: Fri, 22 Oct 2021 11:42:55 +0100 Subject: [PATCH] Also publish to quay.io Signed-off-by: Nigel Jones --- .github/workflows/node-build.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/node-build.yml b/.github/workflows/node-build.yml index 4c16728f..63cd00aa 100644 --- a/.github/workflows/node-build.yml +++ b/.github/workflows/node-build.yml @@ -52,6 +52,13 @@ jobs: username: ${{ secrets.DOCKER_HUB_USERNAME }} password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} if: ${{ github.event_name == 'push' && github.repository == 'odpi/egeria-react-ui' }} + - 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-react-ui' }} # For releases (ie not main) - name: Build and push (not main merge) if: github.ref != 'refs/heads/main' @@ -59,7 +66,7 @@ jobs: uses: docker/build-push-action@v2 with: push: ${{ github.event_name == 'push' && github.repository == 'odpi/egeria-react-ui' }} - tags: odpi/egeria-react-ui:${{ steps.package-version.outputs.current-version}} + tags: odpi/egeria-react-ui:${{ steps.package-version.outputs.current-version}}, quay.io/odpi/egeria-react-ui:${{ steps.package-version.outputs.current-version}} context: . file: ./Dockerfile # For main code stream @@ -69,7 +76,7 @@ jobs: uses: docker/build-push-action@v2 with: push: ${{ github.event_name == 'push' && github.repository == 'odpi/egeria-react-ui' }} - tags: odpi/egeria-react-ui:${{ steps.package-version.outputs.current-version}}, odpi/egeria-react-ui:latest + tags: odpi/egeria-react-ui:${{ steps.package-version.outputs.current-version}}, odpi/egeria-react-ui:latest, quay.io/odpi/egeria-react-ui:${{ steps.package-version.outputs.current-version}}, quay.io/odpi/egeria-react-ui:latest context: . file: ./Dockerfile - name: Image digest (release)