From 5190e9c48e3671c2d42200aeef4bef5c4955367f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Trkan?= Date: Thu, 16 Oct 2025 18:00:07 +0200 Subject: [PATCH] fix(infrastructure): use correct runner --- .github/workflows/deploy-prod.yaml | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy-prod.yaml b/.github/workflows/deploy-prod.yaml index e092706..b42ee4a 100644 --- a/.github/workflows/deploy-prod.yaml +++ b/.github/workflows/deploy-prod.yaml @@ -30,19 +30,22 @@ jobs: context: 7project/backend secrets: inherit - frontend: - name: Frontend - Build and Deploy to Cloudflare Pages (prod) - uses: ./.github/workflows/frontend-pages.yml - with: - mode: prod - secrets: inherit - get_urls: - name: Get URLs + name: Generate Production URLs uses: ./.github/workflows/url_generator.yml with: mode: prod runner: vhs + base_domain: ${{ vars.PROD_DOMAIN }} + secrets: inherit + + frontend: + name: Frontend - Build and Deploy to Cloudflare Pages (prod) + needs: [get_urls] + uses: ./.github/workflows/frontend-pages.yml + with: + mode: prod + backend_url_scheme: ${{ needs.get_urls.outputs.backend_url_scheme }} secrets: inherit deploy: @@ -78,6 +81,11 @@ jobs: RABBITMQ_PASSWORD: ${{ secrets.PROD_RABBITMQ_PASSWORD }} DB_PASSWORD: ${{ secrets.PROD_DB_PASSWORD }} DIGEST: ${{ needs.build.outputs.digest }} + BANKID_CLIENT_ID: ${{ secrets.BANKID_CLIENT_ID }} + BANKID_CLIENT_SECRET: ${{ secrets.BANKID_CLIENT_SECRET }} + MOJEID_CLIENT_ID: ${{ secrets.MOJEID_CLIENT_ID }} + MOJEID_CLIENT_SECRET: ${{ secrets.MOJEID_CLIENT_SECRET }} + run: | helm upgrade --install myapp ./7project/charts/myapp-chart \ -n prod --create-namespace \ @@ -90,3 +98,7 @@ jobs: --set image.digest="$DIGEST" \ --set-string rabbitmq.password="$RABBITMQ_PASSWORD" \ --set-string database.password="$DB_PASSWORD" + --set-string oauth.bankid.clientId="$BANKID_CLIENT_ID" \ + --set-string oauth.bankid.clientSecret="$BANKID_CLIENT_SECRET" \ + --set-string oauth.mojeid.clientId="$MOJEID_CLIENT_ID" \ + --set-string oauth.mojeid.clientSecret="$MOJEID_CLIENT_SECRET" \ No newline at end of file