File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -139,16 +139,16 @@ docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
139
139
140
140
# ### Branch Based Registry Pushes
141
141
142
- Using `after_success` it is also possible to push an image to a registry based
143
- on the branch :
142
+ To push a particular branch of your repository to a remote registry,
143
+ use the `after_success` section of your `.travis.yml` :
144
144
145
145
` ` ` yaml
146
146
147
- after_success:
148
- - if [ "$TRAVIS_BRANCH" == "master" ]; then
149
- docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
150
- docker push USER/REPO;
151
- fi
147
+ after_success:
148
+ - if [ "$TRAVIS_BRANCH" == "master" ]; then
149
+ docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
150
+ docker push USER/REPO;
151
+ fi
152
152
` ` `
153
153
154
154
# ### Private Registry Login
You can’t perform that action at this time.
0 commit comments