From 27724423fb3d21f64bf9ea1ee7134369b7d6aa11 Mon Sep 17 00:00:00 2001 From: Udo Waechter Date: Tue, 1 Feb 2022 20:38:21 +0100 Subject: [PATCH] using kaniko task from tectoncd catalog --- _CI-CD/tekton-build-kaniko-task.yaml | 0 apps/rompr/tekton-image-build.yaml | 18 ++++++------------ 2 files changed, 6 insertions(+), 12 deletions(-) create mode 100644 _CI-CD/tekton-build-kaniko-task.yaml diff --git a/_CI-CD/tekton-build-kaniko-task.yaml b/_CI-CD/tekton-build-kaniko-task.yaml new file mode 100644 index 0000000..e69de29 diff --git a/apps/rompr/tekton-image-build.yaml b/apps/rompr/tekton-image-build.yaml index c5d9b49..a1755a3 100644 --- a/apps/rompr/tekton-image-build.yaml +++ b/apps/rompr/tekton-image-build.yaml @@ -41,8 +41,12 @@ spec: outputs: - name: builtImage type: image + results: + - name: IMAGE-DIGEST + description: Digest of the image just built. + steps: - - name: build-and-push-arm64 + - name: build-and-push image: gcr.io/kaniko-project/executor:latest command: - /kaniko/executor @@ -52,17 +56,7 @@ spec: - --context=$(params.pathToContext) - --snapshotMode=redo - --skip-tls-verify - - name: build-and-push-armhf - image: gcr.io/kaniko-project/executor:latest - command: - - /kaniko/executor - args: - - --build-arg="GOARCH=arm" - - --dockerfile=$(params.pathToDockerFile) - - --destination=$(resources.outputs.builtImage.url) - - --context=$(params.pathToContext) - - --snapshotMode=redo - - --skip-tls-verify + - --digest-file=/tekton/results/IMAGE-DIGEST --- apiVersion: tekton.dev/v1beta1 kind: TaskRun