test
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user