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