Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

Commit

Permalink
Fix cicd cache (#137)
Browse files Browse the repository at this point in the history
* remove vendor from cahce

* add version to cache

* add version

Co-authored-by: erdrix <[email protected]>
  • Loading branch information
erdrix and erdrix authored Oct 13, 2021
1 parent da69ebf commit 47a7ba7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,18 @@ orbs:
command: |
make generate
[ "$(git ls-files -m | grep -c zz_generated)" -eq 0 ]
- run:
name: List
command: |
ls -la /home/circleci/<< parameters.operatorDir >>
- persist_to_workspace: # Create artifacts
root: /home/circleci
paths:
- << parameters.operatorDir >>/build/_output
#- << parameters.operatorDir >>/vendor
- << parameters.operatorDir >>/vendor
- save_cache:
name: Save build artifacts in cache
key: << parameters.operatorName >>-generate-{{ .Branch }}-{{ checksum "go.sum" }}
key: << parameters.operatorName >>-generate-1-{{ .Branch }}-{{ checksum "go.sum" }}
paths:
- build/_output
- vendor
Expand Down

0 comments on commit 47a7ba7

Please sign in to comment.