This commit is contained in:
2025-08-04 23:59:24 +09:00
parent 3849fa276a
commit 2812ceeda0

View File

@ -68,19 +68,20 @@ spec:
# echo "[ERROR] Docker config 파일(.dockerconfigjson) 없음" # echo "[ERROR] Docker config 파일(.dockerconfigjson) 없음"
# fi # fi
# 3. Debugging - Check mounted secret before build # 3. Debugging - Check mounted secret before build
- name: debug-sleep # - name: debug-sleep
image: alpine # image: alpine
script: | # script: |
#!/bin/sh # #!/bin/sh
echo "==== [DEBUG] Pod에 접속 가능 상태로 대기 중... ====" # echo "==== [DEBUG] Pod에 접속 가능 상태로 대기 중... ===="
sleep 180 # sleep 180
# 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: harbor-dockerconfig - name: harbor-dockerconfig
mountPath: /kaniko/.docker mountPath: /kaniko/.docker/config.json
subPath: .dockerconfigjson
readOnly: true readOnly: true
# env: # env:
# - name: DOCKER_CONFIG # - name: DOCKER_CONFIG