Skip to content

Commit

Permalink
Build tekton triggers with golang 1.17
Browse files Browse the repository at this point in the history
Update the tekton triggers build pipeline to build using golang 1.17.7

Controller images are built using ko.
Updating the ko image in the publish task to one that includes
golang 1.17.7 (golang:1.17.7-alpine3.15). Reference the ko image by sha
instead of tag. This will require an extra step to update the image in
future (plumbing first, triggers then) but it's best for attestations
and also it allows updating the image on plumbing side and in the
registry without direct side effect on triggers.

Signed-off-by: Andrea Frittoli <[email protected]>
  • Loading branch information
afrittoli authored and tekton-robot committed Mar 3, 2022
1 parent 0bd41e3 commit 080d643
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ configuring Kubernetes resources.
Docker for Desktop using an edge version has been proven to work for both
developing and running Pipelines. The recommended configuration is:

- Kubernetes version 1.16 or later
- Kubernetes version 1.21 or later
- 4 vCPU nodes (`n1-standard-4`)
- Node autoscaling, up to 3 nodes
- API scopes for cloud-platform
Expand All @@ -108,7 +108,7 @@ To setup a cluster with GKE:
variable (e.g. `PROJECT_ID`).

1. Create a GKE cluster (with `--cluster-version=latest` but you can use any
version 1.16 or later):
version 1.21 or later):

```bash
export PROJECT_ID=my-gcp-project
Expand Down
2 changes: 1 addition & 1 deletion tekton/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ spec:
cp ${DOCKER_CONFIG} /workspace/docker-config.json
- name: run-ko
image: gcr.io/tekton-releases/dogfooding/ko:latest
image: gcr.io/tekton-releases/dogfooding/ko@sha256:ec55b9dd6c7af2b237cc7c38a974cc42212d53a026ee2a84f685f02c471c6c9e
env:
- name: KO_DOCKER_REPO
value: $(params.imageRegistry)/$(params.imageRegistryPath)
Expand Down

0 comments on commit 080d643

Please sign in to comment.