Update travis.yaml

pull/148/head
johnniang 2019-05-09 15:21:30 +08:00
parent 8f5f508b49
commit 59590cf178
1 changed files with 6 additions and 1 deletions

View File

@ -15,12 +15,17 @@ jobs:
script: ./gradlew check
- stage: build
script: ./gradlew build -x test
- stage: build docker image
- stage: build-docker-image
scrip:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build -t $DOCKER_USERNAME/halo .
- docker images
- docker push $DOCKER_USERNAME/halo
stages:
- test
- build
- name: build-docker-image
if: branch = master OR branch = dev
branches:
only:
- master