This commit is contained in:
29
.drone.yml
29
.drone.yml
@@ -24,17 +24,23 @@ steps:
|
||||
backend: "filesystem"
|
||||
#debug: true
|
||||
restore: true
|
||||
cache_key: "volume"
|
||||
cache_key: '{{ .Repo.Name }}_{{ checksum "go.mod" }}_{{ checksum "go.sum" }}_{{ arch }}_{{ os }}'
|
||||
archive_format: "gzip"
|
||||
filesystem_cache_root: "/tmp/cache"
|
||||
#mount:
|
||||
# - 'vendor'
|
||||
#filesystem_cache_root: "/tmp/cache"
|
||||
local_root: /
|
||||
mount:
|
||||
- pkg.mod
|
||||
- pkg.build
|
||||
volumes:
|
||||
- name: cache
|
||||
path: /tmp/cache
|
||||
- name: shared
|
||||
path: /go
|
||||
|
||||
- name: build
|
||||
image: golang
|
||||
environment:
|
||||
CGO_ENABLED: 0
|
||||
GOMODCACHE: '/drone/src/pkg.mod'
|
||||
GOCACHE: '/drone/src/pkg.build'
|
||||
volumes:
|
||||
- name: shared
|
||||
path: /shared
|
||||
@@ -49,14 +55,15 @@ steps:
|
||||
backend: "filesystem"
|
||||
#debug: true
|
||||
rebuild: true
|
||||
cache_key: "volume"
|
||||
cache_key: '{{ .Repo.Name }}_{{ checksum "go.mod" }}_{{ checksum "go.sum" }}_{{ arch }}_{{ os }}'
|
||||
archive_format: "gzip"
|
||||
filesystem_cache_root: "/tmp/cache"
|
||||
#mount:
|
||||
# - 'vendor'
|
||||
#filesystem_cache_root: "/tmp/cache"
|
||||
mount:
|
||||
- pkg.mod
|
||||
- pkg.build
|
||||
volumes:
|
||||
- name: cache
|
||||
path: /tmp/cache
|
||||
path: /go
|
||||
|
||||
# Copy binary to test server
|
||||
- name: coadcorp-deploy
|
||||
|
Reference in New Issue
Block a user