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