From 3849fa276a15ca07d93d80ae56f9ed128839bb0b Mon Sep 17 00:00:00 2001 From: icurfer Date: Mon, 4 Aug 2025 23:57:43 +0900 Subject: [PATCH] test --- sample-build/02-task-build.yaml | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/sample-build/02-task-build.yaml b/sample-build/02-task-build.yaml index e539330..826156e 100644 --- a/sample-build/02-task-build.yaml +++ b/sample-build/02-task-build.yaml @@ -18,6 +18,10 @@ spec: - name: image-url type: string # description: 최종 Docker 이미지 URL (예: harbor.icurfer.com/open/tekton-demo:latest) + volumes: + - name: harbor-dockerconfig + secret: + secretName: harbor-dockerconfig # Harbor Docker config secret name steps: # 1. Git Clone @@ -74,19 +78,16 @@ spec: # 4. Kaniko Build & Push - name: build-and-push image: gcr.io/kaniko-project/executor:latest - # volumeMounts: - # - name: docker-config - # mountPath: /kaniko/.docker/ - # readOnly: true - env: - - name: DOCKER_CONFIG - value: /workspace/docker-config + volumeMounts: + - name: harbor-dockerconfig + mountPath: /kaniko/.docker + readOnly: true + # env: + # - name: DOCKER_CONFIG + # value: /workspace/docker-config args: - --dockerfile=/workspace/source/Dockerfile - --context=/workspace/source - --destination=$(params.image-url) - --insecure - volumes: - - name: harbor-dockerconfig - secret: - secretName: harbor-dockerconfig \ No newline at end of file + \ No newline at end of file