diff options
| author | 2025-11-09 18:56:30 +0100 | |
|---|---|---|
| committer | 2025-11-09 20:01:26 +0100 | |
| commit | 2ec05f8075c4c373e64e46f64e6e0ad27dc0a41f (patch) | |
| tree | 737360001798f9101ea89e6385afe02a703c5747 /Jenkinsfile | |
| parent | e6321f6e3258619c33f93d1e341242bf2ab8970a (diff) | |
Fix build
Diffstat (limited to 'Jenkinsfile')
| -rw-r--r-- | Jenkinsfile | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Jenkinsfile b/Jenkinsfile index bbadec1..33f4846 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -47,16 +47,24 @@ pipeline { stage('Docker buildx (multi-arch)') { steps { - withCredentials([usernamePassword( + withCredentials([ + usernamePassword( credentialsId: 'docker', usernameVariable: 'DOCKER_USER', passwordVariable: 'DOCKER_PASS' - )]) { + ), + usernamePassword( + credentialsId: 'docker-hub', + usernameVariable: 'DOCKER_HUB_USER', + passwordVariable: 'DOCKER_HUB_PASS' + ) + ]) { sh ''' docker version docker buildx version docker buildx ls | grep -q multiarch || docker buildx create --name multiarch --use --bootstrap echo "$DOCKER_PASS" | docker login $REGISTRY -u "$DOCKER_USER" --password-stdin + echo "$DOCKER_HUB_PASS" | docker login -u "$DOCKER_HUB_USER" --password-stdin DOCKER_BUILDKIT=1 docker buildx build \ --platform ${PLATFORMS} \ |
