diff --git a/Jenkinsfile b/Jenkinsfile index fac016b..0a6445f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -27,7 +27,7 @@ spec: stage('Build with Kaniko') { git 'https://git.ervine.org/jonny/x86_64-alpine.git' container('kaniko') { - sh '/kaniko/executor -f `pwd`/Dockerfile -c `pwd` --cache=true --destination=harbor.ervine.dev/library/x86_64/alpine:latest --destination=harbor.ervine.dev/library/x86_64/alpine:3.12.0 --destination=harbor.ervine.dev/library/x86_64/alpine:3.12' + sh '/kaniko/executor -f `pwd`/Dockerfile -c `pwd` --cache=true --destination=harbor.ervine.dev/public/x86_64/alpine:v3.12.0 --destination=harbor.ervine.dev/public/x86_64/alpine:v3.12 --destination=harbor.ervine.dev/library/x86_64/alpine:3.12.0 --destination=harbor.ervine.dev/library/x86_64/alpine:3.12' } } } diff --git a/Jenkinsfile.old b/Jenkinsfile.old deleted file mode 100644 index a0be43b..0000000 --- a/Jenkinsfile.old +++ /dev/null @@ -1,18 +0,0 @@ -node("docker-node") { - docker.withRegistry('https://harbor.ervine.dev', 'jenkins-to-harbor') { - - git branch: "master", url: "ssh://git@git.ervine.org/jonny/x86_64-alpine", credentialsId: 'jenkins-to-git' - - sh "git rev-parse HEAD > .git/commit-id" - def commit_id = readFile('.git/commit-id').trim() - println commit_id - - stage "build" - def app = docker.build "library/x86_64/alpine/alpine" - - stage "publish" - app.push("${env.BUILD_NUMBER}") - app.push("latest") - app.push("3.12") - } -}