Push to docker on tag

This commit is contained in:
Benoit Schweblin 2018-03-30 13:04:14 +01:00
parent 0c97f16587
commit 83a47007b0
2 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@ node_js:
services:
- docker
before_install:
before_deploy:
- docker build -t benweet/stackedit .
deploy:

View File

@ -1,7 +1,7 @@
#!/bin/bash
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 push "benweet/stackedit:$TRAVIS_TAG"
docker tag "benweet/stackedit:$TRAVIS_TAG" benweet/stackedit:latest
docker push benweet/stackedit:$TRAVIS_TAG
docker tag benweet/stackedit:$TRAVIS_TAG benweet/stackedit:latest
docker push benweet/stackedit:latest