From 77a5f135341856623c2402fe21064415653274ae Mon Sep 17 00:00:00 2001 From: Andrew Chasin Date: Tue, 19 Sep 2023 16:28:55 -0400 Subject: [PATCH] fix for env vars --- .github/workflows/_deployment.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/_deployment.yaml b/.github/workflows/_deployment.yaml index ab808bb..273805b 100644 --- a/.github/workflows/_deployment.yaml +++ b/.github/workflows/_deployment.yaml @@ -146,7 +146,11 @@ jobs: - name: Create Service declaration run: |- - export IMAGE="${{ inputs.region }}-docker.pkg.dev/${{ inputs.gcp_project_id }}/${{ inputs.artifact_registry_repo }}/${{ inputs.service_name }}:${{ inputs.ref }}" + export CONTAINER_IMAGE="${{ inputs.region }}-docker.pkg.dev/${{ inputs.gcp_project_id }}/${{ inputs.artifact_registry_repo }}/${{ inputs.service_name }}:${{ inputs.ref }}" + export SERVICE_NAME="${{ inputs.service_name }}" + export PROJECT_ID="${{ inputs.gcp_project_id }}" + export REVISION_TAG="${{ inputs.ref }}" + export CLOUD_RUN_SA="${{ inputs.cloud_run_sa }}" envsubst < ./service-yaml/container-${{ inputs.environment }}.yaml > container-${{ inputs.environment }}.yaml - name: Deploy Cloud Run