Revert builx push experiment

This commit is contained in:
Jamie Curnow 2020-07-31 09:28:45 +10:00
parent 8312bc0100
commit c41057b28a

4
Jenkinsfile vendored
View File

@ -136,12 +136,10 @@ pipeline {
}
steps {
withCredentials([usernamePassword(credentialsId: 'jc21-dockerhub', passwordVariable: 'dpass', usernameVariable: 'duser')]) {
// Buildx to local cache
sh "./scripts/buildx --cache-to=type=local,dest=cache,mode=max ${BUILDX_PUSH_TAGS}"
// Docker Login
sh "docker login -u '${duser}' -p '${dpass}'"
// Buildx with push from cache
sh "./scripts/buildx --push --cache-from=type=local,src=cache ${BUILDX_PUSH_TAGS}"
sh "./scripts/buildx --push ${BUILDX_PUSH_TAGS}"
}
}
}