From 99cb7ae84da3c53b53065908a2d9cc70d81e6105 Mon Sep 17 00:00:00 2001 From: Nigel Jones Date: Fri, 22 Oct 2021 12:43:43 +0100 Subject: [PATCH] Publish to quay.io Signed-off-by: Nigel Jones --- .github/workflows/node-build.yml | 11 +++++++++-- .gitignore | 3 ++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/node-build.yml b/.github/workflows/node-build.yml index a9ee038d..737d36a9 100644 --- a/.github/workflows/node-build.yml +++ b/.github/workflows/node-build.yml @@ -47,6 +47,13 @@ jobs: username: ${{ secrets.DOCKER_HUB_USERNAME }} password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} if: ${{ github.event_name == 'push' && github.repository == 'odpi/egeria-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-ui' }} # For releases (ie not main) we push the image - but not the latest tag - name: Build and push (not master merge) if: github.ref != 'refs/heads/master' @@ -54,7 +61,7 @@ jobs: uses: docker/build-push-action@v2 with: push: ${{ github.event_name == 'push' && github.repository == 'odpi/egeria-ui' }} - tags: odpi/egeria-ui:${{ steps.package-version.outputs.current-version}} + tags: odpi/egeria-ui:${{ steps.package-version.outputs.current-version}}, quay.io/odpi/egeria-ui:${{ steps.package-version.outputs.current-version}} context: . file: ./Dockerfile # For main code stream we push the image and add the latest tag @@ -64,7 +71,7 @@ jobs: uses: docker/build-push-action@v2 with: push: ${{ github.event_name == 'push' && github.repository == 'odpi/egeria-ui' }} - tags: odpi/egeria-ui:${{ steps.package-version.outputs.current-version }}, odpi/egeria-ui:latest + tags: odpi/egeria-ui:${{ steps.package-version.outputs.current-version }}, odpi/egeria-ui:latest, quay.io/odpi/egeria-ui:${{ steps.package-version.outputs.current-version }}, quay.io/odpi/egeria-ui:latest context: . file: ./Dockerfile # Note the digest diff --git a/.gitignore b/.gitignore index 7fc4f533..ad19947f 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ node_modules build debug.log env.js -.DS_Store \ No newline at end of file +.DS_Store +.idea