Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache google ko deps between workflows #424

Merged
merged 2 commits into from
Mar 28, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@ commands:
go build -ldflags "-X main.BuildID=${CIRCLE_TAG:-${CIRCLE_SHA1:0:7}}" \
-o $GOPATH/bin/refinery-<< parameters.os >>-<< parameters.arch >> \
./cmd/refinery
setup_googleko:
steps:
- restore_cache:
keys:
- v1-googleko
- run: go install github.com/google/ko@latest
- save_cache:
key: v1-googleko
paths:
- /home/circleci/go/pkg/mod/

jobs:
test:
Expand Down Expand Up @@ -129,7 +139,7 @@ jobs:
docker:
- image: cimg/go:1.17
steps:
- run: go install github.com/google/ko@latest
- setup_googleko
- checkout
- setup_remote_docker
- run:
Expand All @@ -140,7 +150,7 @@ jobs:
docker:
- image: cimg/go:1.17
steps:
- run: go install github.com/google/ko@latest
- setup_googleko
- checkout
- setup_remote_docker
- run:
Expand Down