Skip to content

Commit

Permalink
Use vendor folder to speed up CI 🥄
Browse files Browse the repository at this point in the history
We still are using the `vendor` folder, so the CI should use this to
build instead of trying to download the world.

- It will speed up the CI
- It will make sure we can build and test with what's in `vendor`

This also updates release Task(s) and Pipeline(s) to use the `vendor` folder.

Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
  • Loading branch information
vdemeester committed Feb 12, 2020
1 parent a1a3280 commit cc176a2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 2 additions & 0 deletions tekton/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ spec:
value: /workspace/go
- name: GO111MODULE
value: "off"
- name: GOFLAGS
value: "-mod=vendor"
- name: CLOUDSDK_AUTH_CREDENTIAL_FILE_OVERRIDE
value: /secret/release.json
script: |
Expand Down
4 changes: 3 additions & 1 deletion tekton/release-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ spec:
params:
- name: package
value: $(params.package)
- name: flags
value: -v -mod=vendor
resources:
inputs:
- name: source
Expand All @@ -88,7 +90,7 @@ spec:
- name: package
value: $(params.package)
- name: flags
value: -ldflags "-X github.com/tektoncd/pipeline/pkg/version.PipelineVersion=$(params.versionTag)"
value: -mod=vendor -ldflags "-X github.com/tektoncd/pipeline/pkg/version.PipelineVersion=$(params.versionTag)"
resources:
inputs:
- name: source
Expand Down
2 changes: 1 addition & 1 deletion vendor/github.com/tektoncd/plumbing/scripts/library.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cc176a2

Please sign in to comment.