From b4014cafd04d80734e79bd2d0dbeb2f7bae1bede Mon Sep 17 00:00:00 2001 From: Lukas Pramuk Date: Tue, 21 Nov 2023 19:55:16 +0100 Subject: [PATCH] DEBUG: fix_building_quay_image --- .github/workflows/action.yml | 40 ++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index 1f81529..5aca799 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -40,3 +40,43 @@ jobs: run: | make test-docstrings make docs + + upgrade_container: + needs: codechecks + name: Update Upgrade Container image on Quay. + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Get image tag + id: image_tag + run: | + echo -n ::set-output name=IMAGE_TAG:: + TAG="${GITHUB_REF##*/}" + if [ "${TAG}" == "master" ]; then + TAG="latest" + fi + echo "${TAG}" + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Login to Quay Container Registry + uses: docker/login-action@v3 + with: + registry: ${{ secrets.QUAY_SERVER }} + username: ${{ secrets.QUAY_USERNAME }} + password: ${{ secrets.QUAY_PASSWORD }} + + - name: Build and push image to Quay + uses: docker/build-push-action@v5 + with: + context: . + file: ./Dockerfile + push: true + tags: ${{ secrets.QUAY_SERVER }}/${{ secrets.QUAY_NAMESPACE }}/upgrade:${{ steps.image_tag.outputs.IMAGE_TAG }}