This commit is contained in:
2025-08-04 23:57:43 +09:00
parent 6448215f97
commit 3849fa276a

View File

@ -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