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