debugging harbor auth: secret mount path tweaks

This commit is contained in:
victorc 2024-09-10 09:39:34 +00:00
parent 677bfa130e
commit c7eec55ae8

5
Jenkinsfile vendored
View File

@ -15,7 +15,8 @@ spec:
- 1d - 1d
volumeMounts: volumeMounts:
- name: kaniko-secret - name: kaniko-secret
mountPath: /kaniko/.docker mountPath: /kaniko/.docker/config.json
subpath: .dockerconfigjson
volumes: volumes:
- name: kaniko-secret - name: kaniko-secret
secret: secret:
@ -27,7 +28,7 @@ spec:
stage('Build and Push Image with Kaniko') { stage('Build and Push Image with Kaniko') {
steps { steps {
container('kaniko') { container('kaniko') {
sh 'ls -la /kaniko/.docker/' sh 'cat /kaniko/.docker/config.json'
sh 'echo ---' sh 'echo ---'
sh 'ls -la /kaniko/.docker/*' sh 'ls -la /kaniko/.docker/*'
sh 'echo ---' sh 'echo ---'