-
Story
-
Resolution: Unresolved
-
Major
-
None
-
None
-
None
Story (Required)
Approach (Required)
mkdir -p /gocache/cache
mkdir -p /gocache/mod
export GOCACHE=/gocache/cache
export GOMODCACHE=/gocache/modThis sets up the cache. Inorder to reuse it, you need to have a PVC workspaces:
- mountPath: /gocache
name: gitops-gocache. ---> This is added in the task
In the pipeline as well, root level: workspaces:
- description: Use a PVC named "gitops-gocache".
name: gitops-gocachetask level: workspaces:
- name: gitops-gocache
workspace: gitops-gocache ---> Increased memory in the task: steps:
- computeResources:
limits:
cpu: '2'
memory: 4Gi
requests:
cpu: 500m
memory: 2Gi
Done Checklist
- Code is completed, reviewed, documented and checked in
- Unit and integration test automation have been delivered and running cleanly in continuous integration/staging/canary environment
- Continuous Delivery pipeline(s) is able to proceed with new code included
- Customer facing documentation, API docs etc. are produced/updated, reviewed and published
- Acceptance criteria are met