mirror of
https://github.com/status-im/safe-react.git
synced 2025-02-23 06:58:07 +00:00
* Repare new dev and staging enviroments to deploy - Add to `deploy_pull_requests.sh` to the new path. - Replace upload-dir to deploy staging to the new path. * add /app/ public path for the webapp, remove duplicate yarn build from travis * add basename to app * deploy pr to /app * update travis * linter error fixes * fix travis build script Co-authored-by: David Albela Pérez <3659067+davidalbela@users.noreply.github.com>
23 lines
798 B
Bash
Executable File
23 lines
798 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Only:
|
|
# - Tagged commits
|
|
# - Security env variables are available.
|
|
if [ -n "$TRAVIS_TAG" ] && [ -n "$AWS_ACCESS_KEY_ID" ]
|
|
then
|
|
REVIEW_ENVIRONMENT_DOMAIN='review.gnosisdev.com'
|
|
|
|
# Feature name without all path. Example gnosis/pm-trading-ui -> pm-trading-ui
|
|
REPO_NAME=$(basename $TRAVIS_REPO_SLUG)
|
|
# Only alphanumeric characters. Example pm-trading-ui -> pmtradingui
|
|
REPO_NAME_ALPHANUMERIC=$(echo $REPO_NAME | sed 's/[^a-zA-Z0-9]//g')
|
|
|
|
# Only alphanumeric characters. Example v1.0.0 -> v100
|
|
TRAVIS_TAG_ALPHANUMERIC=$(echo $TRAVIS_TAG | sed 's/[^a-zA-Z0-9]//g')
|
|
|
|
REVIEW_RELEASE_FOLDER="$REPO_NAME_ALPHANUMERIC/$TRAVIS_TAG_ALPHANUMERIC"
|
|
|
|
# Deploy safe-team release project
|
|
aws s3 sync build_webpack s3://${REVIEW_BUCKET_NAME}/${REVIEW_RELEASE_FOLDER}/app --delete
|
|
fi
|