|
@@ -3,7 +3,7 @@ name: default
|
|
|
|
|
|
steps:
|
|
steps:
|
|
- name: restore-cache
|
|
- name: restore-cache
|
|
- image: drillster/drone-volume-cache
|
|
|
|
|
|
+ image: rpi.it5000.com:5000/drillster/drone-volume-cache
|
|
settings:
|
|
settings:
|
|
restore: true
|
|
restore: true
|
|
mount:
|
|
mount:
|
|
@@ -13,12 +13,12 @@ steps:
|
|
path: /cache
|
|
path: /cache
|
|
|
|
|
|
- name: mvn-package
|
|
- name: mvn-package
|
|
- image: maven:3.8.4-jdk-8
|
|
|
|
|
|
+ image: rpi.it5000.com:5000/jaikuai/npm-mvn:rpi
|
|
commands:
|
|
commands:
|
|
- mvn clean package -Dmaven.test.skip=true -Dmaven.repo.local=./repository -s ./setting.xml
|
|
- mvn clean package -Dmaven.test.skip=true -Dmaven.repo.local=./repository -s ./setting.xml
|
|
|
|
|
|
- name: rebuild-cache
|
|
- name: rebuild-cache
|
|
- image: drillster/drone-volume-cache
|
|
|
|
|
|
+ image: rpi.it5000.com:5000/drillster/drone-volume-cache
|
|
settings:
|
|
settings:
|
|
rebuild: true
|
|
rebuild: true
|
|
mount:
|
|
mount:
|
|
@@ -28,7 +28,7 @@ steps:
|
|
path: /cache
|
|
path: /cache
|
|
|
|
|
|
- name: docker-build
|
|
- name: docker-build
|
|
- image: plugins/docker
|
|
|
|
|
|
+ image: rpi.it5000.com:5000/docker:27
|
|
settings:
|
|
settings:
|
|
tags:
|
|
tags:
|
|
- latest
|
|
- latest
|
|
@@ -37,6 +37,18 @@ steps:
|
|
insecure: true
|
|
insecure: true
|
|
repo: nas.fast-fun.cn:5000/zk/zhili-station-server
|
|
repo: nas.fast-fun.cn:5000/zk/zhili-station-server
|
|
|
|
|
|
|
|
+
|
|
|
|
+ - name: docker-build
|
|
|
|
+ image: rpi.it5000.com:5000/docker:27
|
|
|
|
+ privileged: true
|
|
|
|
+ volumes:
|
|
|
|
+ - name: docker
|
|
|
|
+ path: /var/run/docker.sock
|
|
|
|
+ commands:
|
|
|
|
+ - docker build -t nas.fast-fun.cn:5000/zk/zhili-station-server:2.0.${DRONE_BUILD_NUMBER} -f Dockerfile .
|
|
|
|
+ - docker push nas.fast-fun.cn:5000/zk/zhili-station-server:2.0.${DRONE_BUILD_NUMBER}
|
|
|
|
+
|
|
|
|
+
|
|
volumes:
|
|
volumes:
|
|
- name: cache
|
|
- name: cache
|
|
host:
|
|
host:
|