ci: use podman volumes for go mod/build cache

This commit is contained in:
Harvey Tindall
2025-12-09 17:32:11 +00:00
parent ccf0584db8
commit 03cf533c9d
2 changed files with 12 additions and 0 deletions

View File

@@ -27,6 +27,9 @@ steps:
JFA_GO_SNAPSHOT: y
JFA_GO_BUILT_BY:
from_secret: BUILT_BY
volumes:
- jfa-go-build-cache:/root/.cache/go-build
- jfa-go-mod-cache:/go/pkg/mod
commands:
- make test
- name: build
@@ -36,6 +39,9 @@ steps:
from_secret: BUILT_BY
GITHUB_TOKEN:
from_secret: GITHUB_TOKEN
volumes:
- jfa-go-build-cache:/root/.cache/go-build
- jfa-go-mod-cache:/go/pkg/mod
commands:
- curl -sfL https://goreleaser.com/static/run > ../goreleaser
- chmod +x ../goreleaser

View File

@@ -28,6 +28,9 @@ steps:
JFA_GO_SNAPSHOT: y
JFA_GO_BUILT_BY:
from_secret: BUILT_BY
volumes:
- jfa-go-build-cache:/root/.cache/go-build
- jfa-go-mod-cache:/go/pkg/mod
commands:
- make test
- name: build
@@ -36,6 +39,9 @@ steps:
JFA_GO_SNAPSHOT: y
JFA_GO_BUILT_BY:
from_secret: BUILT_BY
volumes:
- jfa-go-build-cache:/root/.cache/go-build
- jfa-go-mod-cache:/go/pkg/mod
commands:
- curl -sfL https://goreleaser.com/static/run > goreleaser
- chmod +x goreleaser