|
|
@ -21,19 +21,6 @@ steps:
|
|
|
|
commands:
|
|
|
|
commands:
|
|
|
|
- mvn clean package
|
|
|
|
- mvn clean package
|
|
|
|
|
|
|
|
|
|
|
|
- name: build-docker-image
|
|
|
|
|
|
|
|
image: plugins/docker
|
|
|
|
|
|
|
|
settings:
|
|
|
|
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
|
|
|
|
repo: 192.168.230.38:8888/zabbix/back:latest
|
|
|
|
|
|
|
|
registry: 192.168.230.38:8888
|
|
|
|
|
|
|
|
username:
|
|
|
|
|
|
|
|
from_secret: harbor_user
|
|
|
|
|
|
|
|
password:
|
|
|
|
|
|
|
|
from_secret: harbor_psw
|
|
|
|
|
|
|
|
insecure: true # 如果需要使用不安全的连接,可以设置为 true
|
|
|
|
|
|
|
|
tags: latest
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: rebuild-cache
|
|
|
|
- name: rebuild-cache
|
|
|
|
image: meltwater/drone-cache
|
|
|
|
image: meltwater/drone-cache
|
|
|
|
settings:
|
|
|
|
settings:
|
|
|
@ -48,6 +35,19 @@ steps:
|
|
|
|
- name: cache
|
|
|
|
- name: cache
|
|
|
|
path: "/var/lib/cache"
|
|
|
|
path: "/var/lib/cache"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: build-docker-image
|
|
|
|
|
|
|
|
image: plugins/docker
|
|
|
|
|
|
|
|
settings:
|
|
|
|
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
|
|
|
|
repo: 192.168.230.38:8888/zabbix/back:latest
|
|
|
|
|
|
|
|
registry: 192.168.230.38:8888
|
|
|
|
|
|
|
|
insecure: true # 如果需要使用不安全的连接,可以设置为 true
|
|
|
|
|
|
|
|
username:
|
|
|
|
|
|
|
|
from_secret: harbor_user
|
|
|
|
|
|
|
|
password:
|
|
|
|
|
|
|
|
from_secret: harbor_psw
|
|
|
|
|
|
|
|
tags: latest
|
|
|
|
|
|
|
|
|
|
|
|
# - name: notify
|
|
|
|
# - name: notify
|
|
|
|
# pull: if-not-exists # 如果镜像不存在则拉取,免去每次都要重新下载
|
|
|
|
# pull: if-not-exists # 如果镜像不存在则拉取,免去每次都要重新下载
|
|
|
|
# image: drillster/drone-email
|
|
|
|
# image: drillster/drone-email
|
|
|
|