test
This commit is contained in:
@ -18,6 +18,10 @@ spec:
|
|||||||
- name: image-url
|
- name: image-url
|
||||||
type: string
|
type: string
|
||||||
# description: 최종 Docker 이미지 URL (예: harbor.icurfer.com/open/tekton-demo:latest)
|
# description: 최종 Docker 이미지 URL (예: harbor.icurfer.com/open/tekton-demo:latest)
|
||||||
|
volumes:
|
||||||
|
- name: harbor-dockerconfig
|
||||||
|
secret:
|
||||||
|
secretName: harbor-dockerconfig # Harbor Docker config secret name
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# 1. Git Clone
|
# 1. Git Clone
|
||||||
@ -74,19 +78,16 @@ spec:
|
|||||||
# 4. Kaniko Build & Push
|
# 4. Kaniko Build & Push
|
||||||
- name: build-and-push
|
- name: build-and-push
|
||||||
image: gcr.io/kaniko-project/executor:latest
|
image: gcr.io/kaniko-project/executor:latest
|
||||||
# volumeMounts:
|
volumeMounts:
|
||||||
# - name: docker-config
|
- name: harbor-dockerconfig
|
||||||
# mountPath: /kaniko/.docker/
|
mountPath: /kaniko/.docker
|
||||||
# readOnly: true
|
readOnly: true
|
||||||
env:
|
# env:
|
||||||
- name: DOCKER_CONFIG
|
# - name: DOCKER_CONFIG
|
||||||
value: /workspace/docker-config
|
# value: /workspace/docker-config
|
||||||
args:
|
args:
|
||||||
- --dockerfile=/workspace/source/Dockerfile
|
- --dockerfile=/workspace/source/Dockerfile
|
||||||
- --context=/workspace/source
|
- --context=/workspace/source
|
||||||
- --destination=$(params.image-url)
|
- --destination=$(params.image-url)
|
||||||
- --insecure
|
- --insecure
|
||||||
volumes:
|
|
||||||
- name: harbor-dockerconfig
|
|
||||||
secret:
|
|
||||||
secretName: harbor-dockerconfig
|
|
||||||
Reference in New Issue
Block a user