We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2e9835 commit d1a0780Copy full SHA for d1a0780
Jenkinsfile
@@ -136,9 +136,12 @@ pipeline {
136
}
137
steps {
138
withCredentials([usernamePassword(credentialsId: 'jc21-dockerhub', passwordVariable: 'dpass', usernameVariable: 'duser')]) {
139
+ // Buildx to local cache
140
+ sh "./scripts/buildx --cache-to=type=local,dest=cache,mode=max -t ${IMAGE}:build-${BRANCH_LOWER}-${BUILD_NUMBER}"
141
+ // Docker Login
142
sh "docker login -u '${duser}' -p '${dpass}'"
- // Buildx with push
- sh "./scripts/buildx --push ${BUILDX_PUSH_TAGS}"
143
+ // Buildx with push from cache
144
+ sh "./scripts/buildx --push --cache-from=type=local,src=cache ${BUILDX_PUSH_TAGS}"
145
146
147
0 commit comments