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