Skip to content

Commit

Permalink
Update cloudbuild.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
pwei1018 authored Apr 24, 2024
1 parent 918c06e commit 134210e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/actions/frontend-deploy/files/cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 134210e

Please sign in to comment.