提交 2f4b6b0d 编写于 作者: J johnniang 提交者: John Niang

Add build docker image stage for travis

上级 dcca2619
......@@ -8,9 +8,19 @@ cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
script:
- ./gradlew check
- ./gradlew clean build -x test
dist: trusty
jobs:
include:
- stage: test
script: ./gradlew check
- stage: build
script: ./gradlew build -x test
- 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
branches:
only:
- master
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册