File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 2727 echo "export deploy_location=<< pipeline.parameters.deploy_location >>" >> "$BASH_ENV"
2828 - run :
2929 name : Deploy website and api-data to the correct environment (production/staging)
30- command : sh scripts/deploy.sh
30+ command : bash scripts/deploy.sh
3131
3232workflows :
3333 version : 2
Original file line number Diff line number Diff line change 1- #! /bin/sh
1+ #! /bin/bash
22# Executed when the `master` or `staging` branches of PokeAPI/api-data and PokeAPI/pokeapi.co are pushed to
33# Runs in CircleCI
44# Deploys both pokeapi.co and api-data to Firebase in the respective project
@@ -9,11 +9,11 @@ export GOOGLE_APPLICATION_CREDENTIALS="$HOME"/gcp_sa.json
99
1010if [ " ${deploy_location:= $CIRCLE_BRANCH } " = ' master' ]; then
1111 echo ' Deploying master branches of PokeAPI/api-data and PokeAPI/pokeapi.co to https://pokeapi.co'
12- echo " $GCP_SA " > " $HOME " /gcp_sa.json
12+ echo " $GCP_SA_B64 " | base64 --decode > " $HOME " /gcp_sa.json
1313 PROJECT=${FIREBASE_PROJECT_ID}
1414elif [ " ${deploy_location} " = ' staging' ]; then
1515 echo ' Deploying staging branches of PokeAPI/api-data and PokeAPI/pokeapi.co to the staging location'
16- echo " $GCP_SA_STAGING " > " $HOME " /gcp_sa.json
16+ echo " $GCP_SA_STAGING_B64 " | base64 --decode > " $HOME " /gcp_sa.json
1717 PROJECT=${FIREBASE_PROJECT_ID_STAGING}
1818fi
1919
You can’t perform that action at this time.
0 commit comments