From 810cfd5144254b968bd6ae4c8974e0b98c042b9c Mon Sep 17 00:00:00 2001 From: icurfer Date: Mon, 4 Aug 2025 17:54:30 +0900 Subject: [PATCH] test update --- sample-build/02-task-build.yaml | 12 ++++-------- sample-build/05-pipeline-build.yaml | 5 +++++ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/sample-build/02-task-build.yaml b/sample-build/02-task-build.yaml index e998d57..f057c59 100644 --- a/sample-build/02-task-build.yaml +++ b/sample-build/02-task-build.yaml @@ -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 \ No newline at end of file + - --destination=$(params.image-url) + - --insecure diff --git a/sample-build/05-pipeline-build.yaml b/sample-build/05-pipeline-build.yaml index b41b15c..3fc239d 100644 --- a/sample-build/05-pipeline-build.yaml +++ b/sample-build/05-pipeline-build.yaml @@ -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)