File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ language: java
2
2
jdk :
3
3
- openjdk11
4
4
dist : bionic
5
+ branches :
6
+ only :
7
+ - master
5
8
env :
6
9
global :
7
10
- TF_IN_AUTOMATION=1
60
63
- cd $TRAVIS_BUILD_DIR
61
64
- 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) "')
62
65
- $(aws ecr get-login --no-include-email --region $AWS_DEFAULT_REGION)
63
- - ./gradlew check docker dockerTag dockerPush dockerTagsPush publish -PTAG=$TRAVIS_BUILD_NUMBER -PREPOSITORY_URI=$REPOSITORY_URI
66
+ - ./gradlew check docker dockerTag dockerTagsPush publish -PTAG=$TRAVIS_BUILD_NUMBER -PREPOSITORY_URI=$REPOSITORY_URI
67
+ - if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then bash ./gradlew dockerPush; fi
64
68
after_success :
65
69
- ./gradlew sonarqube
66
70
- stage : deploy to development
You can’t perform that action at this time.
0 commit comments