From 134210e4529426dff3c5863076080bbea9f88c79 Mon Sep 17 00:00:00 2001 From: Patrick Wei <44277752+pwei1018@users.noreply.github.com> Date: Wed, 24 Apr 2024 15:18:18 -0700 Subject: [PATCH] Update cloudbuild.yaml --- .github/actions/frontend-deploy/files/cloudbuild.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/actions/frontend-deploy/files/cloudbuild.yaml b/.github/actions/frontend-deploy/files/cloudbuild.yaml index 634bc2ae..12a03575 100644 --- a/.github/actions/frontend-deploy/files/cloudbuild.yaml +++ b/.github/actions/frontend-deploy/files/cloudbuild.yaml @@ -79,14 +79,14 @@ steps: echo -E "${firebase}" > firebase-${_DEPLOYMENT_ENVIRONMENT}.json echo $(op read -n op://CD/${_DEPLOYMENT_ENVIRONMENT}/${_APP_NAME}/DEPLOY_PROJECT_ID) > /workspace/project_id.txt - echo $(op read -n op://CD/${_DEPLOYMENT_ENVIRONMENT}/${_APP_NAME}/BUILD_FOLDER) > /workspace/build_folder.txt - - BUILD_FOLDER=$(cat /workspace/build_folder.txt) + BUILD_FOLDER=$(op read -n op://CD/${_DEPLOYMENT_ENVIRONMENT}/${_APP_NAME}/BUILD_FOLDER1) if [ -z "${BUILD_FOLDER}" ]; then - BUILD_FOLDER=. + BUILD_FOLDER="." fi + echo ${BUILD_FOLDER} > /workspace/build_folder.txt + # Prepare .env by vaults export APP_ENV=${_DEPLOYMENT_ENVIRONMENT} op inject -i ./devops/vaults.env -o ${BUILD_FOLDER}/.env -f