File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 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 deployment/script/travis_deploy_ecr.sh; fi
57
56
- ./gradlew check
58
- - if [ "TRAVIS_EVENT_TYPE " = "push " ]; then ./gradlew docker dockerTag dockerTagsPush publish -PTAG=$TRAVIS_BUILD_NUMBER -PREPOSITORY_URI=$REPOSITORY_URI ; fi
57
+ - if [ "$TRAVIS_PULL_REQUEST " = "false " ]; then deployment/script/travis_push_container.sh ; fi
59
58
- if [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$TRAVIS_BRANCH" = "master" ]; then ./gradlew dockerPush; fi
60
59
after_success :
61
60
- ./gradlew sonarqube
Original file line number Diff line number Diff line change @@ -7,3 +7,4 @@ export REPOSITORY_URI=$(terraform output repository_url) || exit 1
7
7
cd $TRAVIS_BUILD_DIR
8
8
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) "' ) || exit 1
9
9
$( aws ecr get-login --no-include-email --region $AWS_DEFAULT_REGION ) || exit 1
10
+ ./gradlew docker dockerTag dockerTagsPush publish -PTAG=$TRAVIS_BUILD_NUMBER -PREPOSITORY_URI=$REPOSITORY_URI || exit 1
You can’t perform that action at this time.
0 commit comments