From dc2e016d7c2b8f18cb5aef56a5a01c37e6cc2c9e Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Mon, 26 Oct 2020 06:50:26 +0000 Subject: [PATCH] Added suport for building multi-arch images --- tekton/publish.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tekton/publish.yaml b/tekton/publish.yaml index 1b9854c647b..f2eb36df2e3 100644 --- a/tekton/publish.yaml +++ b/tekton/publish.yaml @@ -133,11 +133,11 @@ spec: OUTPUT_BUCKET_RELEASE_DIR="/workspace/output/bucket/previous/$(params.versionTag)" # Publish images and create release.yaml - ko resolve --preserve-import-paths -t $(params.versionTag) -f /workspace/go/src/github.com/tektoncd/pipeline/config/ > $OUTPUT_BUCKET_RELEASE_DIR/release.yaml + ko resolve --platform=all --preserve-import-paths -t $(params.versionTag) -f /workspace/go/src/github.com/tektoncd/pipeline/config/ > $OUTPUT_BUCKET_RELEASE_DIR/release.yaml # Publish images and create release.notags.yaml # This is useful if your container runtime doesn't support the `image-reference:tag@digest` notation # This is currently the case for `cri-o` (and most likely others) - ko resolve --preserve-import-paths -f /workspace/go/src/github.com/tektoncd/pipeline/config/ > $OUTPUT_BUCKET_RELEASE_DIR/release.notags.yaml + ko resolve --platform=all --preserve-import-paths -f /workspace/go/src/github.com/tektoncd/pipeline/config/ > $OUTPUT_BUCKET_RELEASE_DIR/release.notags.yaml volumeMounts: - name: gcp-secret mountPath: /secret