Skip to content

Commit

Permalink
Merge pull request #55 from planetf1/egeria4046
Browse files Browse the repository at this point in the history
Publish to quay.io
  • Loading branch information
CDaRip2U authored Oct 25, 2021
2 parents f37baac + a2da335 commit fb94066
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,21 @@ 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'
id: docker_build_release
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
Expand All @@ -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
Expand Down

0 comments on commit fb94066

Please sign in to comment.