Update travis.yaml

pull/151/head
johnniang 2019-05-09 15:21:30 +08:00 committed by John Niang
parent 2f4b6b0d3a
commit abcdab9d3d
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