Skip to content

Commit

Permalink
Merge pull request #133 from moonstream-to/api-deploy-inst
Browse files Browse the repository at this point in the history
Fullcount API deployment with retrieving params
  • Loading branch information
kompotkot authored Jan 11, 2024
2 parents 52a6d2f + f93b253 commit 9340bd8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions api/deploy/deploy.bash
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,20 @@ cd "${APP_DIR}/api"
/home/ubuntu/.nvm/versions/node/v19.9.0/bin/npm run build
cd "${EXEC_DIR}"

echo
echo
echo -e "${PREFIX_INFO} Install checkenv"
HOME=/home/ubuntu /usr/local/go/bin/go install github.com/bugout-dev/checkenv@latest

echo
echo
echo -e "${PREFIX_INFO} Retrieving deployment parameters"
if [ ! -d "${SECRETS_DIR}" ]; then
mkdir "${SECRETS_DIR}"
echo -e "${PREFIX_WARN} Created new secrets directory"
fi
AWS_DEFAULT_REGION="${AWS_DEFAULT_REGION}" /home/ubuntu/go/bin/checkenv show aws_ssm+fullcount:true > "${PARAMETERS_ENV_PATH}"
chmod 0640 "${PARAMETERS_ENV_PATH}"

echo
echo
Expand Down

0 comments on commit 9340bd8

Please sign in to comment.