Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Commit

Permalink
Merge pull request #257 from planetf1/egeria4046
Browse files Browse the repository at this point in the history
Publish to quay.io
  • Loading branch information
planetf1 authored Oct 22, 2021
2 parents e1de726 + 99cb7ae commit 6dbe098
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/node-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,21 @@ 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'
id: docker_build_release
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
Expand All @@ -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
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ node_modules
build
debug.log
env.js
.DS_Store
.DS_Store
.idea

0 comments on commit 6dbe098

Please sign in to comment.