|
@@ -3,6 +3,10 @@ kind: pipeline
|
|
type: kubernetes
|
|
type: kubernetes
|
|
name: default
|
|
name: default
|
|
|
|
|
|
|
|
+environment:
|
|
|
|
+ GOCACHE: /cache/pkg/cache
|
|
|
|
+ GOMODCACHE: /cache/pkg/mod
|
|
|
|
+
|
|
steps:
|
|
steps:
|
|
- name: fetch-tags
|
|
- name: fetch-tags
|
|
image: alpine/git
|
|
image: alpine/git
|
|
@@ -19,8 +23,10 @@ steps:
|
|
- name: test
|
|
- name: test
|
|
image: golang:1.20.5
|
|
image: golang:1.20.5
|
|
volumes:
|
|
volumes:
|
|
- - name: cache
|
|
|
|
|
|
+ - name: go
|
|
path: /go
|
|
path: /go
|
|
|
|
+ - name: gopkg
|
|
|
|
+ path: /cache
|
|
commands:
|
|
commands:
|
|
- ./scripts/download-test-geoip
|
|
- ./scripts/download-test-geoip
|
|
- go get
|
|
- go get
|
|
@@ -44,8 +50,10 @@ steps:
|
|
cpu: 10000
|
|
cpu: 10000
|
|
memory: 2048MiB
|
|
memory: 2048MiB
|
|
volumes:
|
|
volumes:
|
|
- - name: cache
|
|
|
|
|
|
+ - name: go
|
|
path: /go
|
|
path: /go
|
|
|
|
+ - name: gopkg
|
|
|
|
+ path: /cache
|
|
commands:
|
|
commands:
|
|
- ./scripts/run-goreleaser
|
|
- ./scripts/run-goreleaser
|
|
- echo Done
|
|
- echo Done
|
|
@@ -100,8 +108,11 @@ steps:
|
|
depends_on: [goreleaser]
|
|
depends_on: [goreleaser]
|
|
|
|
|
|
volumes:
|
|
volumes:
|
|
- - name: cache
|
|
|
|
|
|
+ - name: go
|
|
temp: {}
|
|
temp: {}
|
|
|
|
+ - name: gopkg
|
|
|
|
+ claim:
|
|
|
|
+ name: go-pkg
|
|
|
|
|
|
trigger:
|
|
trigger:
|
|
event:
|
|
event:
|
|
@@ -172,6 +183,6 @@ trigger:
|
|
- publish
|
|
- publish
|
|
---
|
|
---
|
|
kind: signature
|
|
kind: signature
|
|
-hmac: 15fb83a349cd0141f9195dd089e87f44af8e9469945a31a720368ab5ef623f19
|
|
|
|
|
|
+hmac: 3be05c496c080db6c470712339a50a2bb4b3288992715b7f8f7033432eebdd45
|
|
|
|
|
|
...
|
|
...
|