From e47fc6af57888e1e6afc8ba68bd0c4a0a57d15f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20=C5=BB=C3=B3=C5=82tak?= Date: Fri, 30 Aug 2024 18:46:35 +0200 Subject: [PATCH] .github/workflows/build-and-deploy.yml: build production image --- .github/workflows/build-and-deploy.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index a05f55a..1e59d59 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -1,7 +1,7 @@ name: Create image and Deploy env: - IMAGE_TAG: loris:dev + IMAGE_TAG: loris:3.2.1 on: workflow_dispatch: ~ @@ -35,11 +35,11 @@ jobs: tags: | acdhch/${{ env.IMAGE_TAG }} ghcr.io/acdh-oeaw/${{ env.IMAGE_TAG }} -# rancher: -# needs: build_and_push_to_registry -# name: Deploy to rancher -# runs-on: ubuntu-latest -# steps: -# - name: Rancher Deploy Action -# run: | -# curl -i -X POST "${{ secrets.RANCHERURL }}?action=redeploy" -H "Authorization: Bearer ${{ secrets.RANCHER_BARER_TOKEN }}" + rancher: + needs: build_and_push_to_registry + name: Deploy to rancher + runs-on: ubuntu-latest + steps: + - name: Rancher Deploy Action + run: | + curl -i -X POST "${{ secrets.RANCHERURL }}?action=redeploy" -H "Authorization: Bearer ${{ secrets.RANCHER_BARER_TOKEN }}"