test update
This commit is contained in:
@ -1,11 +1,9 @@
|
|||||||
# 02-task-build.yaml
|
|
||||||
apiVersion: tekton.dev/v1beta1
|
apiVersion: tekton.dev/v1beta1
|
||||||
kind: Task
|
kind: Task
|
||||||
metadata:
|
metadata:
|
||||||
name: build-docker-image
|
name: build-docker-image
|
||||||
namespace: tekton-demo
|
namespace: tekton-demo
|
||||||
spec:
|
spec:
|
||||||
# volumes 미지원으로 인한 마운트위한 정보
|
|
||||||
workspaces:
|
workspaces:
|
||||||
- name: docker-config
|
- name: docker-config
|
||||||
params:
|
params:
|
||||||
@ -25,16 +23,14 @@ spec:
|
|||||||
git clone $(params.git-url) /workspace/source
|
git clone $(params.git-url) /workspace/source
|
||||||
cd /workspace/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
|
||||||
env:
|
env:
|
||||||
- name: DOCKER_CONFIG
|
- name: DOCKER_CONFIG
|
||||||
value: /tekton/home/.docker/
|
value: /workspace/docker-config
|
||||||
volumeMounts:
|
|
||||||
- name: harbor-dockerconfig
|
|
||||||
mountPath: /tekton/home/.docker/
|
|
||||||
args:
|
args:
|
||||||
- --dockerfile=/workspace/source/Dockerfile
|
- --dockerfile=/workspace/source/Dockerfile
|
||||||
- --context=/workspace/source
|
- --context=/workspace/source
|
||||||
- --destination=harbor.icurfer.com/open/tekton-demo:latest
|
- --destination=$(params.image-url)
|
||||||
- --insecure
|
- --insecure
|
||||||
@ -5,6 +5,8 @@ metadata:
|
|||||||
name: docker-build-pipeline
|
name: docker-build-pipeline
|
||||||
namespace: tekton-demo
|
namespace: tekton-demo
|
||||||
spec:
|
spec:
|
||||||
|
workspaces:
|
||||||
|
- name: docker-config
|
||||||
params:
|
params:
|
||||||
- name: git-url
|
- name: git-url
|
||||||
type: string
|
type: string
|
||||||
@ -17,6 +19,9 @@ spec:
|
|||||||
- name: build
|
- name: build
|
||||||
taskRef:
|
taskRef:
|
||||||
name: build-docker-image
|
name: build-docker-image
|
||||||
|
workspaces:
|
||||||
|
- name: docker-config
|
||||||
|
workspace: docker-config
|
||||||
params:
|
params:
|
||||||
- name: git-url
|
- name: git-url
|
||||||
value: $(params.git-url)
|
value: $(params.git-url)
|
||||||
|
|||||||
Reference in New Issue
Block a user