Skip to content

Commit 55f7cc4

Browse files
committed
chore: gc prune cli to save space
1 parent c17ce3d commit 55f7cc4

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.circleci/build-cli.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,6 @@ npm i
2121

2222
echo "Running build"
2323
npm run build
24+
25+
echo "Pruning git to save space"
26+
git gc --prune=now

.circleci/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,13 +298,13 @@ jobs:
298298
echo $CLI_COMMIT_HASH >> /tmp/cli-version
299299
- restore_cache:
300300
keys:
301-
- v1-cli-repo-{{ checksum "/tmp/cli-version" }}
302-
- v1-cli-repo-
301+
- v1-cli-repo-g-{{ checksum "/tmp/cli-version" }}
302+
- v1-cli-repo-g-
303303
- run:
304304
name: Build Snyk CLI with latest changes
305305
command: ./.circleci/build-cli.sh
306306
- save_cache:
307-
key: v1-cli-repo-{{ checksum "/tmp/cli-version" }}
307+
key: v1-cli-repo-g-{{ checksum "/tmp/cli-version" }}
308308
paths:
309309
- ~/cli
310310
build_and_test_latest_go_binary:

0 commit comments

Comments
 (0)