Push to ghcr and quay container registry
@@ -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
@@ -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 }}
