mirror of https://github.com/fspc/workstand.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
493 B
13 lines
493 B
language: generic
|
|
services:
|
|
- docker
|
|
before_install:
|
|
- docker build -t bcbc/workstand:production .
|
|
after_success:
|
|
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
|
|
- export REPO=bcbc/workstand
|
|
- export TAG=`if [ "$TRAVIS_BRANCH" == "master" ]; then echo "production"; else echo $TRAVIS_BRANCH ; fi`
|
|
- docker build -f Dockerfile -t $REPO:$COMMIT .
|
|
- docker tag $REPO:$COMMIT $REPO:$TAG
|
|
- docker tag $REPO:$COMMIT $REPO:travis-$TRAVIS_BUILD_NUMBER
|
|
- docker push $REPO
|