Skip to content

Commit

Permalink
chore: Add GitLab application credentials to deployment automation
Browse files Browse the repository at this point in the history
  • Loading branch information
munen committed Nov 1, 2021
1 parent 007d568 commit 8cbeecb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/compile_and_upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@ set -e
# Configure available back-end API keys
cp .env.sample .env
[ -z ${REACT_APP_DROPBOX_CLIENT_ID+x} ] || sed -i "s/your_dropbox_client_id/${REACT_APP_DROPBOX_CLIENT_ID}/" .env

[ -z ${REACT_APP_GOOGLE_DRIVE_API_KEY+x} ] || sed -i "s/your_google_drive_api_key/${REACT_APP_GOOGLE_DRIVE_API_KEY}/" .env
[ -z ${REACT_APP_GOOGLE_DRIVE_CLIENT_ID+x} ] || sed -i "s/your_google_drive_oauth_client_id/${REACT_APP_GOOGLE_DRIVE_CLIENT_ID}/" .env

[ -z ${REACT_APP_GITLAB_CLIENT_ID+x} ] || sed -i "s/your_gitlab_client_id/${REACT_APP_GITLAB_CLIENT_ID}/" .env
[ -z ${REACT_APP_GITLAB_SECRET+x} ] || sed -i "s/your_gitlab_secret/${REACT_APP_GITLAB_SECRET}/" .env

yarn install
yarn run build
cd build
Expand Down

0 comments on commit 8cbeecb

Please sign in to comment.