From f9c2a0196f26e7ddfe51c03835184115bab9163e Mon Sep 17 00:00:00 2001 From: Phillip Date: Tue, 9 May 2023 11:25:19 +0200 Subject: [PATCH] BC-3778 push container image to quay (#34) --- .github/workflows/push.yml | 2 +- .github/workflows/tag.yml | 13 ++++++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index ff831ef..d0cdd0f 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -40,7 +40,7 @@ jobs: - name: Build and push ${{ github.repository }} if: ${{ env.IMAGE_EXISTS == 0 }} - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v4 with: context: . file: ./Dockerfile diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index 3e77a5f..b3811d9 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -19,19 +19,26 @@ jobs: id: docker_meta_img_hub uses: docker/metadata-action@v3 with: - images: schulcloud/schulcloud-avcheck + images: docker.io/schulcloud/schulcloud-avcheck, quay.io/schulcloudverbund/schulcloud-avcheck tags: | type=semver,pattern={{version}} type=semver,pattern={{major}}.{{minor}} - - name: Log into registry + - name: Log into docker registry uses: docker/login-action@v2 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_TOKEN }} + - name: Log into quay registry + uses: docker/login-action@v2 + with: + registry: quay.io + username: ${{ secrets.QUAY_USERNAME }} + password: ${{ secrets.QUAY_TOKEN }} + - name: Build and push ${{ github.repository }} - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v4 with: context: . file: ./Dockerfile