Skip to content

Commit efc7b4b

Browse files
author
Bhavik Kumar
committed
Fix gradlew docker tag command
1 parent 4ce00d7 commit efc7b4b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ jobs:
5353
- export AWS_SECRET_ACCESS_KEY=$DEPLOYMENT_SECRET_ACCESS_KEY
5454
- unset AWS_SESSION_TOKEN
5555
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
5757
- cd $TRAVIS_BUILD_DIR
5858
- 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) "')
5959
- $(aws ecr get-login --no-include-email --region $AWS_DEFAULT_REGION)
6060
- ./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
6363
after_success:
6464
- ./gradlew sonarqube
6565
- stage: deploy to development

0 commit comments

Comments
 (0)