From 03cf533c9d11a41a6996de13c74971a2a49e0954 Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Tue, 9 Dec 2025 17:32:11 +0000 Subject: [PATCH] ci: use podman volumes for go mod/build cache --- .woodpecker/stable.yaml | 6 ++++++ .woodpecker/unstable.yaml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/.woodpecker/stable.yaml b/.woodpecker/stable.yaml index 4fb2988..90d50cd 100644 --- a/.woodpecker/stable.yaml +++ b/.woodpecker/stable.yaml @@ -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 diff --git a/.woodpecker/unstable.yaml b/.woodpecker/unstable.yaml index adbb6b7..6960897 100644 --- a/.woodpecker/unstable.yaml +++ b/.woodpecker/unstable.yaml @@ -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