using kaniko task from tectoncd catalog
This commit is contained in:
0
_CI-CD/tekton-build-kaniko-task.yaml
Normal file
0
_CI-CD/tekton-build-kaniko-task.yaml
Normal file
@@ -41,8 +41,12 @@ spec:
|
|||||||
outputs:
|
outputs:
|
||||||
- name: builtImage
|
- name: builtImage
|
||||||
type: image
|
type: image
|
||||||
|
results:
|
||||||
|
- name: IMAGE-DIGEST
|
||||||
|
description: Digest of the image just built.
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build-and-push-arm64
|
- name: build-and-push
|
||||||
image: gcr.io/kaniko-project/executor:latest
|
image: gcr.io/kaniko-project/executor:latest
|
||||||
command:
|
command:
|
||||||
- /kaniko/executor
|
- /kaniko/executor
|
||||||
@@ -52,17 +56,7 @@ spec:
|
|||||||
- --context=$(params.pathToContext)
|
- --context=$(params.pathToContext)
|
||||||
- --snapshotMode=redo
|
- --snapshotMode=redo
|
||||||
- --skip-tls-verify
|
- --skip-tls-verify
|
||||||
- name: build-and-push-armhf
|
- --digest-file=/tekton/results/IMAGE-DIGEST
|
||||||
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
|
|
||||||
---
|
---
|
||||||
apiVersion: tekton.dev/v1beta1
|
apiVersion: tekton.dev/v1beta1
|
||||||
kind: TaskRun
|
kind: TaskRun
|
||||||
|
|||||||
Reference in New Issue
Block a user