parent
c6787e1b9f
commit
f554fbcf5b
54
.drone.yml
54
.drone.yml
|
@ -3,15 +3,15 @@ type: docker
|
|||
name: compile
|
||||
|
||||
steps:
|
||||
- name: restore-pkg
|
||||
image: drillster/drone-volume-cache
|
||||
volumes:
|
||||
- name: cache
|
||||
path: /cache
|
||||
settings:
|
||||
restore: true
|
||||
mount:
|
||||
- $GOPATH/pkg
|
||||
# - name: restore-pkg
|
||||
# image: drillster/drone-volume-cache
|
||||
# volumes:
|
||||
# - name: cache
|
||||
# path: /cache
|
||||
# settings:
|
||||
# restore: true
|
||||
# mount:
|
||||
# - $GOPATH/pkg
|
||||
|
||||
# - name: test
|
||||
# image: eigeen/golang-devops:1.18
|
||||
|
@ -27,22 +27,22 @@ steps:
|
|||
commands:
|
||||
- go build
|
||||
|
||||
- name: rebuild-pkg
|
||||
image: drillster/drone-volume-cache
|
||||
volumes:
|
||||
- name: cache
|
||||
path: /cache
|
||||
settings:
|
||||
rebuild: true
|
||||
mount:
|
||||
- $GOPATH/pkg
|
||||
#当对应条件的时候才会执行
|
||||
when:
|
||||
status:
|
||||
- success
|
||||
- failure
|
||||
# - name: rebuild-pkg
|
||||
# image: drillster/drone-volume-cache
|
||||
# volumes:
|
||||
# - name: cache
|
||||
# path: /cache
|
||||
# settings:
|
||||
# rebuild: true
|
||||
# mount:
|
||||
# - $GOPATH/pkg
|
||||
# #当对应条件的时候才会执行
|
||||
# when:
|
||||
# status:
|
||||
# - success
|
||||
# - failure
|
||||
|
||||
volumes:
|
||||
- name: cache
|
||||
host:
|
||||
path: /tmp/cache
|
||||
# volumes:
|
||||
# - name: cache
|
||||
# host:
|
||||
# path: /tmp/cache
|
Loading…
Reference in New Issue