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