using kaniko task from tectoncd catalog

This commit is contained in:
2022-02-01 20:38:21 +01:00
parent 2a32977d80
commit 27724423fb
2 changed files with 6 additions and 12 deletions

View File

View File

@@ -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