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 #277 from planetf1/egeria4046
Browse files Browse the repository at this point in the history
Also publish to quay.io
  • Loading branch information
planetf1 authored Oct 22, 2021
2 parents 729d977 + 7511e5c commit ff510f1
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/node-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,21 @@ 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'
id: docker_build_release
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
Expand All @@ -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)
Expand Down

0 comments on commit ff510f1

Please sign in to comment.