CI test #6
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Eigeen 2022-04-03 19:40:53 +08:00
parent c6787e1b9f
commit f554fbcf5b
1 changed files with 27 additions and 27 deletions

View File

@ -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