Skip to content

Commit

Permalink
Push to ghcr and quay container registry (nebari-dev#912)
Browse files Browse the repository at this point in the history
  • Loading branch information
aktech authored Nov 10, 2021
1 parent 965d481 commit c907354
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,20 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Login to Quay Container Registry
uses: docker/login-action@v1
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_TOKEN }}

- name: Docker meta
id: meta
uses: crazy-max/ghaction-docker-meta@v2
Expand All @@ -60,6 +74,9 @@ jobs:
with:
context: "./qhub/template/{{ cookiecutter.repo_directory }}/image"
file: "./qhub/template/{{ cookiecutter.repo_directory }}/image/Dockerfile.${{ matrix.dockerfile }}"
tags: ${{ steps.meta.outputs.tags }}
tags: |
${{ steps.meta.outputs.tags }}
ghcr.io/${{ steps.meta.outputs.tags }}
quay.io/${{ steps.meta.outputs.tags }}
push: ${{ github.event_name != 'pull_request' }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit c907354

Please sign in to comment.