You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.0 KiB
46 lines
1.0 KiB
kind: pipeline
|
|
type: docker
|
|
name: master
|
|
steps:
|
|
- name: restore-cache
|
|
image: meltwater/drone-cache
|
|
settings:
|
|
backend: filesystem
|
|
restore: true
|
|
cache_key: "gomod"
|
|
archive_format: gzip
|
|
filesystem_cache_root: "/var/lib/cache"
|
|
mount:
|
|
- 'mod.pkg'
|
|
volumes:
|
|
- name: cache
|
|
path: "/var/lib/cache"
|
|
# Do stuff..
|
|
- name: docker
|
|
image: plugins/docker
|
|
settings:
|
|
dockerfile: "Dockerfile"
|
|
repo: harbor.oa00.com/library/image
|
|
registry: harbor.oa00.com
|
|
username:
|
|
from_secret: docker_username
|
|
password:
|
|
from_secret: docker_password
|
|
auto_tag: true
|
|
- name: rebuild-cache
|
|
image: meltwater/drone-cache
|
|
settings:
|
|
backend: filesystem
|
|
rebuild: true
|
|
cache_key: "gomod"
|
|
archive_format: gzip
|
|
filesystem_cache_root: "/var/lib/cache"
|
|
mount:
|
|
- 'mod.pkg'
|
|
volumes:
|
|
- name: cache
|
|
path: "/var/lib/cache"
|
|
volumes:
|
|
- name: cache
|
|
host:
|
|
path: "/var/lib/cache" |