Skip to content

Commit 5d274b9

Browse files
chmouelpipelines-as-code[bot]
authored andcommitted
ci: Use fetched results for the go build task
when uploading the cache make sure it's not already fetched or to not upload again and again Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
1 parent bcd0e1f commit 5d274b9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.tekton/go.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ spec:
122122
value: ["**go.mod", "**go.sum"]
123123
- name: target
124124
value: oci://image-registry.openshift-image-registry.svc:5000/$(context.pipelineRun.namespace)/cache-go:{{hash}}
125+
- name: fetched
126+
value: $(tasks.cached-fetch.results.fetched)
125127
- name: cachePath
126128
value: $(workspaces.source.path)/go-build-cache
127129
- name: workingdir

0 commit comments

Comments
 (0)