File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -53,13 +53,13 @@ jobs:
53
53
- export AWS_SECRET_ACCESS_KEY=$DEPLOYMENT_SECRET_ACCESS_KEY
54
54
- unset AWS_SESSION_TOKEN
55
55
script :
56
- - if [ "TRAVIS_EVENT_TYPE" = "push" ]; then bash deployment/script/travis_deploy.sh; REPOSITORY_URI=$(terraform output repository_url); fi
56
+ - if [ "TRAVIS_EVENT_TYPE" = "push" ]; then deployment/script/travis_deploy.sh; REPOSITORY_URI=$(terraform output repository_url); fi
57
57
- cd $TRAVIS_BUILD_DIR
58
58
- eval $(aws sts assume-role --role-arn "$OPERATIONS_ROLE_ARN" --role-session-name "${TRAVIS_REPO_SLUG//\//-}" | jq -r '.Credentials | @sh "export AWS_SESSION_TOKEN=\(.SessionToken)\nexport AWS_ACCESS_KEY_ID=\(.AccessKeyId)\nexport AWS_SECRET_ACCESS_KEY=\(.SecretAccessKey) "')
59
59
- $(aws ecr get-login --no-include-email --region $AWS_DEFAULT_REGION)
60
60
- ./gradlew check docker dockerTag -PTAG=$TRAVIS_BUILD_NUMBER -PREPOSITORY_URI=$REPOSITORY_URI
61
- - if [ "TRAVIS_EVENT_TYPE" = "push" ]; then bash ./gradlew dockerTagsPush publish; fi
62
- - if [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$TRAVIS_BRANCH" = "master" ]; then bash ./gradlew dockerPush; fi
61
+ - if [ "TRAVIS_EVENT_TYPE" = "push" ]; then ./gradlew dockerTagsPush publish; fi
62
+ - if [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$TRAVIS_BRANCH" = "master" ]; then ./gradlew dockerPush; fi
63
63
after_success :
64
64
- ./gradlew sonarqube
65
65
- stage : deploy to development
You can’t perform that action at this time.
0 commit comments