Skip to content

Commit

Permalink
chore: add cache paths for go builds
Browse files Browse the repository at this point in the history
Add cache paths for go based builds.

Signed-off-by: Noel Georgi <[email protected]>
  • Loading branch information
frezbo committed Jun 14, 2024
1 parent b840088 commit 5904e12
Show file tree
Hide file tree
Showing 11 changed files with 37 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
#
# Generated on 2024-05-23T15:58:32Z by kres 2688b70.
# Generated on 2024-06-14T10:54:10Z by kres c9bcf1d.

name: default
concurrency:
Expand Down Expand Up @@ -33,7 +33,7 @@ jobs:
labels: ${{ steps.retrieve-pr-labels.outputs.result }}
services:
buildkitd:
image: moby/buildkit:v0.13.2
image: moby/buildkit:v0.14.0
options: --privileged
ports:
- 1234:1234
Expand Down Expand Up @@ -141,7 +141,7 @@ jobs:
- default
services:
buildkitd:
image: moby/buildkit:v0.13.2
image: moby/buildkit:v0.14.0
options: --privileged
ports:
- 1234:1234
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/weekly.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
#
# Generated on 2024-05-23T15:58:32Z by kres 2688b70.
# Generated on 2024-06-14T10:54:10Z by kres c9bcf1d.

name: weekly
concurrency:
Expand All @@ -16,7 +16,7 @@ jobs:
- pkgs
services:
buildkitd:
image: moby/buildkit:v0.13.2
image: moby/buildkit:v0.14.0
options: --privileged
ports:
- 1234:1234
Expand Down
3 changes: 3 additions & 0 deletions container-runtime/ecr-credential-provider/pkg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ steps:
sha512: d9b9c63f2f2b6d9e910650464acc5000ba0cc2e35d0f5f27c4121c5e3cd539682a4b89f80358a5fb2a4c8409e2d82a66c5409e9895c58546c78bbb78b39d96be
env:
GOPATH: /go
cachePaths:
- /.cache/go-build
- /go/pkg
prepare:
- |
sed -i 's#$VERSION#{{ .VERSION }}#' /pkg/manifest.yaml
Expand Down
3 changes: 3 additions & 0 deletions container-runtime/gvisor/pkg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ steps:
sha512: 1370bb0df975e4f5f78046d6a520c0056ccadef4b048919e384b7cecc0956f01acf5ea1fd498ffce5fa3af0dc7a8ee62da91e1fa4cd34bc1a87b550a43fd8b26
env:
GOPATH: /go
cachePaths:
- /.cache/go-build
- /go/pkg
prepare:
- |
sed -i 's#$VERSION#{{ .VERSION }}#' /pkg/manifest.yaml
Expand Down
3 changes: 3 additions & 0 deletions container-runtime/kata-containers/pkg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ steps:
sha512: 54b989b1db27e56266d1e40b18d3c4f353a3f876dad358afecbba7fb7e1238da1f0856c73f627cbb24e36176f784e2a809bb1b7a990ad21644b06e7b43d64a68
env:
GOPATH: /go
cachePaths:
- /.cache/go-build
- /go/pkg
prepare:
- |
sed -i 's#$VERSION#{{ .VERSION }}#' /pkg/manifest.yaml
Expand Down
3 changes: 3 additions & 0 deletions container-runtime/stargz-snapshotter/pkg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ steps:
sha512: 3cc86e690ed63ed48acc3205225400e8fc6f64147e3f7424864e09007feb6ca8168fcc17bf60290519172cc049d6ccf338d4b223ac4e5050f35dee287318ade4
env:
GOPATH: /go
cachePaths:
- /.cache/go-build
- /go/pkg
prepare:
- |
sed -i 's#$VERSION#{{ .VERSION }}#' /pkg/manifest.yaml
Expand Down
3 changes: 3 additions & 0 deletions examples/hello-world-service/pkg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ dependencies:
steps:
- env:
GOPATH: /go
cachePaths:
- /.cache/go-build
- /go/pkg
prepare:
- |
sed -i 's#$VERSION#{{ .VERSION }}#' /pkg/manifest.yaml
Expand Down
5 changes: 4 additions & 1 deletion network/tailscale/pkg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ dependencies:
steps:
- env:
GOPATH: /go
- sources:
- cachePaths:
- /.cache/go-build
- /go/pkg
sources:
- url: https://github.com/tailscale/tailscale/archive/refs/tags/v{{ .TAILSCALE_VERSION }}.tar.gz
destination: tailscale.tar.gz
sha256: e5e46f6b6b716b2c4696dce0b92dc2e36f02b06b7ad9f055042a820ad61b2a47
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ shell: /toolchain/bin/bash
dependencies:
- stage: base
steps:
- build:
- cachePaths:
- /.cache/go-build
- /go/pkg
build:
- |
export PATH=${PATH}:${TOOLCHAIN}/go/bin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ shell: /toolchain/bin/bash
dependencies:
- stage: base
steps:
- build:
- cachePaths:
- /.cache/go-build
- /go/pkg
build:
- |
export PATH=${PATH}:${TOOLCHAIN}/go/bin
Expand Down
7 changes: 5 additions & 2 deletions storage/iscsi-tools/iscsid-wrapper/pkg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ shell: /toolchain/bin/bash
dependencies:
- stage: base
steps:
- build:
- cachePaths:
- /.cache/go-build
- /go/pkg
build:
- |
export PATH=${PATH}:${TOOLCHAIN}/go/bin
Expand All @@ -14,7 +17,7 @@ steps:
install:
- |
mkdir -p /rootfs/usr/local/sbin
cp iscsid-wrapper /rootfs/usr/local/sbin/iscsid-wrapper
finalize:
- from: /rootfs
Expand Down

0 comments on commit 5904e12

Please sign in to comment.