From ad1c71f18b903a6139d000e49d7135a4f025148a Mon Sep 17 00:00:00 2001 From: Freek Gruntjes Date: Wed, 12 Oct 2022 11:47:19 +0200 Subject: [PATCH] fix: Attempted deploy fix --- .github/workflows/deploy.yaml | 3 ++- App.Function.Banktransaction.Import/service.yaml | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index cdeb164..12fbfcd 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -73,7 +73,8 @@ jobs: - uses: mshick/fast-envsubst@v1 env: SERVICE: ${{ matrix.project.service }}-${{ env.environment_lowercase }} - DEPLOY_ENV: ${{ steps.environment.outputs.result }} + DEPLOY_ENV: ${{ env.environment_lowercase }} + DOTNET_ENVIRONMENT: ${{ steps.environment.outputs.result }} IMAGE: gcr.io/${{ secrets.GOOGLE_PROJECT_ID }}/${{ matrix.project.service }}:${{env.slug}} Database__ConnectionString: ${{ secrets.DATABASE__CONNECTIONSTRING }} Database__DatabaseName: ${{steps.environment.outputs.result}} diff --git a/App.Function.Banktransaction.Import/service.yaml b/App.Function.Banktransaction.Import/service.yaml index 1524784..01e79af 100644 --- a/App.Function.Banktransaction.Import/service.yaml +++ b/App.Function.Banktransaction.Import/service.yaml @@ -1,7 +1,7 @@ apiVersion: serving.knative.dev/v1 kind: Service metadata: - name: ${SERVICE} + name: ${SERVICE}-${DEPLOY_ENV} labels: environment: ${DEPLOY_ENV} spec: @@ -12,7 +12,7 @@ spec: - image: ${IMAGE} env: - name: DOTNET_ENVIRONMENT - value: ${DEPLOY_ENV} + value: ${DOTNET_ENVIRONMENT} - name: Database__ConnectionString value: ${Database__ConnectionString} - name: Database__DatabaseName