Tag docker image with branch name after build (#616)

Add docker cloud stack config file
This commit is contained in:
jekkos
2016-06-20 22:53:06 +02:00
parent 8aa46126c5
commit 17dcd3fdb2
2 changed files with 11 additions and 1 deletions

View File

@@ -21,6 +21,6 @@ script:
after_success:
- docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
- docker tag opensourcepos_php jekkos/opensourcepos:latest
- docker tag opensourcepos_php jekkos/opensourcepos:$TRAVIS_BRANCH
- docker push jekkos/opensourcepos

10
docker-cloud.yml Normal file
View File

@@ -0,0 +1,10 @@
web:
image: jekkos/opensourcepos
links:
- mysql
ports:
- "80:80"
roles:
- global
mysql:
image: mysql