Push to docker on tag
This commit is contained in:
parent
0c97f16587
commit
83a47007b0
@ -6,7 +6,7 @@ node_js:
|
|||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
|
|
||||||
before_install:
|
before_deploy:
|
||||||
- docker build -t benweet/stackedit .
|
- docker build -t benweet/stackedit .
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD";
|
docker login -u benweet -p "$DOCKER_PASSWORD"
|
||||||
docker tag benweet/stackedit "benweet/stackedit:$TRAVIS_TAG"
|
docker tag benweet/stackedit "benweet/stackedit:$TRAVIS_TAG"
|
||||||
docker push "benweet/stackedit:$TRAVIS_TAG"
|
docker push benweet/stackedit:$TRAVIS_TAG
|
||||||
docker tag "benweet/stackedit:$TRAVIS_TAG" benweet/stackedit:latest
|
docker tag benweet/stackedit:$TRAVIS_TAG benweet/stackedit:latest
|
||||||
docker push benweet/stackedit:latest
|
docker push benweet/stackedit:latest
|
||||||
|
Loading…
Reference in New Issue
Block a user