test update
This commit is contained in:
@ -1,3 +1,4 @@
|
|||||||
|
# 02-task-build.yaml
|
||||||
apiVersion: tekton.dev/v1beta1
|
apiVersion: tekton.dev/v1beta1
|
||||||
kind: Task
|
kind: Task
|
||||||
metadata:
|
metadata:
|
||||||
@ -18,8 +19,8 @@ spec:
|
|||||||
script: |
|
script: |
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
git clone $(params.git-url) source
|
git clone $(params.git-url) /workspace/source
|
||||||
cd source
|
cd /workspace/source
|
||||||
git checkout $(params.git-revision)
|
git checkout $(params.git-revision)
|
||||||
- name: build-and-push
|
- name: build-and-push
|
||||||
image: gcr.io/kaniko-project/executor:latest
|
image: gcr.io/kaniko-project/executor:latest
|
||||||
@ -30,7 +31,7 @@ spec:
|
|||||||
#!/busybox/sh
|
#!/busybox/sh
|
||||||
/kaniko/executor \
|
/kaniko/executor \
|
||||||
--dockerfile=./Dockerfile \
|
--dockerfile=./Dockerfile \
|
||||||
--context=source \
|
--context=/workspace/source \
|
||||||
--destination=$(params.image-url) \
|
--destination=$(params.image-url) \
|
||||||
--insecure \
|
--insecure \
|
||||||
--insecure-push
|
--insecure-push
|
||||||
|
|||||||
Reference in New Issue
Block a user