Added credentials

This commit is contained in:
Jonathan Ervine 2020-07-20 15:17:46 +08:00
parent a5bd063b84
commit 6a4073f2e9

2
Jenkinsfile vendored
View File

@ -25,7 +25,7 @@ spec:
node(POD_LABEL) { node(POD_LABEL) {
stage('Build with Kaniko') { stage('Build with Kaniko') {
git 'ssh://git@git.ervine.org/jonny/kubespray-installer', credentialsId: 'jenkins-to-git' git url: 'ssh://git@git.ervine.org/jonny/kubespray-installer', credentialsId: 'jenkins-to-git'
container('kaniko') { container('kaniko') {
sh '/kaniko/executor -f `pwd`/Dockerfile -c `pwd` --cache=true --destination=harbor.ervine.dev/library/x86_64/alpine/htpc-mgr:latest --destination=harbor.ervine.dev/library/x86_64/alpine/htpc-mgr:3.12' sh '/kaniko/executor -f `pwd`/Dockerfile -c `pwd` --cache=true --destination=harbor.ervine.dev/library/x86_64/alpine/htpc-mgr:latest --destination=harbor.ervine.dev/library/x86_64/alpine/htpc-mgr:3.12'
} }