mirror of
https://github.com/hrfee/jfa-go.git
synced 2026-01-18 16:47:42 +01:00
ci: use podman volumes for go mod/build cache
This commit is contained in:
@@ -27,6 +27,9 @@ steps:
|
|||||||
JFA_GO_SNAPSHOT: y
|
JFA_GO_SNAPSHOT: y
|
||||||
JFA_GO_BUILT_BY:
|
JFA_GO_BUILT_BY:
|
||||||
from_secret: BUILT_BY
|
from_secret: BUILT_BY
|
||||||
|
volumes:
|
||||||
|
- jfa-go-build-cache:/root/.cache/go-build
|
||||||
|
- jfa-go-mod-cache:/go/pkg/mod
|
||||||
commands:
|
commands:
|
||||||
- make test
|
- make test
|
||||||
- name: build
|
- name: build
|
||||||
@@ -36,6 +39,9 @@ steps:
|
|||||||
from_secret: BUILT_BY
|
from_secret: BUILT_BY
|
||||||
GITHUB_TOKEN:
|
GITHUB_TOKEN:
|
||||||
from_secret: GITHUB_TOKEN
|
from_secret: GITHUB_TOKEN
|
||||||
|
volumes:
|
||||||
|
- jfa-go-build-cache:/root/.cache/go-build
|
||||||
|
- jfa-go-mod-cache:/go/pkg/mod
|
||||||
commands:
|
commands:
|
||||||
- curl -sfL https://goreleaser.com/static/run > ../goreleaser
|
- curl -sfL https://goreleaser.com/static/run > ../goreleaser
|
||||||
- chmod +x ../goreleaser
|
- chmod +x ../goreleaser
|
||||||
|
|||||||
@@ -28,6 +28,9 @@ steps:
|
|||||||
JFA_GO_SNAPSHOT: y
|
JFA_GO_SNAPSHOT: y
|
||||||
JFA_GO_BUILT_BY:
|
JFA_GO_BUILT_BY:
|
||||||
from_secret: BUILT_BY
|
from_secret: BUILT_BY
|
||||||
|
volumes:
|
||||||
|
- jfa-go-build-cache:/root/.cache/go-build
|
||||||
|
- jfa-go-mod-cache:/go/pkg/mod
|
||||||
commands:
|
commands:
|
||||||
- make test
|
- make test
|
||||||
- name: build
|
- name: build
|
||||||
@@ -36,6 +39,9 @@ steps:
|
|||||||
JFA_GO_SNAPSHOT: y
|
JFA_GO_SNAPSHOT: y
|
||||||
JFA_GO_BUILT_BY:
|
JFA_GO_BUILT_BY:
|
||||||
from_secret: BUILT_BY
|
from_secret: BUILT_BY
|
||||||
|
volumes:
|
||||||
|
- jfa-go-build-cache:/root/.cache/go-build
|
||||||
|
- jfa-go-mod-cache:/go/pkg/mod
|
||||||
commands:
|
commands:
|
||||||
- curl -sfL https://goreleaser.com/static/run > goreleaser
|
- curl -sfL https://goreleaser.com/static/run > goreleaser
|
||||||
- chmod +x goreleaser
|
- chmod +x goreleaser
|
||||||
|
|||||||
Reference in New Issue
Block a user