|
|
@ -2,19 +2,19 @@ kind: pipeline
|
|
|
|
type: docker
|
|
|
|
type: docker
|
|
|
|
name: master
|
|
|
|
name: master
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
# - name: restore-cache
|
|
|
|
- name: restore-cache
|
|
|
|
# image: meltwater/drone-cache
|
|
|
|
image: meltwater/drone-cache
|
|
|
|
# settings:
|
|
|
|
settings:
|
|
|
|
# backend: filesystem
|
|
|
|
backend: filesystem
|
|
|
|
# restore: true
|
|
|
|
restore: true
|
|
|
|
# cache_key: "maven"
|
|
|
|
cache_key: "maven"
|
|
|
|
# archive_format: gzip
|
|
|
|
archive_format: gzip
|
|
|
|
# filesystem_cache_root: "/var/lib/cache"
|
|
|
|
filesystem_cache_root: "/var/lib/cache"
|
|
|
|
# mount:
|
|
|
|
mount:
|
|
|
|
# - "maven"
|
|
|
|
- "maven"
|
|
|
|
# volumes:
|
|
|
|
volumes:
|
|
|
|
# - name: cache
|
|
|
|
- name: cache
|
|
|
|
# path: "/var/lib/cache"
|
|
|
|
path: "/var/lib/cache"
|
|
|
|
# Do stuff..
|
|
|
|
# Do stuff..
|
|
|
|
- name: build
|
|
|
|
- name: build
|
|
|
|
image: maven:3.8-openjdk-8
|
|
|
|
image: maven:3.8-openjdk-8
|
|
|
@ -24,29 +24,29 @@ steps:
|
|
|
|
- name: build-docker-image
|
|
|
|
- name: build-docker-image
|
|
|
|
image: plugins/docker
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
settings:
|
|
|
|
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
repo: 192.168.230.38:8888/zabbix/back:latest
|
|
|
|
repo: 192.168.230.38:8888/zabbix/back:latest
|
|
|
|
registry: 192.168.230.38:8888
|
|
|
|
registry: 192.168.230.38:8888
|
|
|
|
username:
|
|
|
|
username:
|
|
|
|
from_secret: harbor_user
|
|
|
|
from_secret: harbor_user
|
|
|
|
password:
|
|
|
|
password:
|
|
|
|
from_secret: harbor_psw
|
|
|
|
from_secret: harbor_psw
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
insecure: true # 如果需要使用不安全的连接,可以设置为 true
|
|
|
|
insecure: true
|
|
|
|
|
|
|
|
tags: latest
|
|
|
|
tags: latest
|
|
|
|
|
|
|
|
|
|
|
|
# - name: rebuild-cache
|
|
|
|
- name: rebuild-cache
|
|
|
|
# image: meltwater/drone-cache
|
|
|
|
image: meltwater/drone-cache
|
|
|
|
# settings:
|
|
|
|
settings:
|
|
|
|
# backend: filesystem
|
|
|
|
backend: filesystem
|
|
|
|
# rebuild: true
|
|
|
|
rebuild: true
|
|
|
|
# cache_key: "maven"
|
|
|
|
cache_key: "maven"
|
|
|
|
# archive_format: gzip
|
|
|
|
archive_format: gzip
|
|
|
|
# filesystem_cache_root: "/var/lib/cache"
|
|
|
|
filesystem_cache_root: "/var/lib/cache"
|
|
|
|
# mount:
|
|
|
|
mount:
|
|
|
|
# - "maven"
|
|
|
|
- "maven"
|
|
|
|
# volumes:
|
|
|
|
volumes:
|
|
|
|
# - name: cache
|
|
|
|
- name: cache
|
|
|
|
# path: "/var/lib/cache"
|
|
|
|
path: "/var/lib/cache"
|
|
|
|
|
|
|
|
|
|
|
|
# - name: notify
|
|
|
|
# - name: notify
|
|
|
|
# pull: if-not-exists # 如果镜像不存在则拉取,免去每次都要重新下载
|
|
|
|
# pull: if-not-exists # 如果镜像不存在则拉取,免去每次都要重新下载
|
|
|
|