multiarch image

This commit is contained in:
2025-08-06 19:27:00 -05:00
parent 2915493f4d
commit d226433fa4
5 changed files with 51 additions and 20 deletions

17
Jenkinsfile vendored
View File

@@ -17,7 +17,21 @@ pipeline {
}
}
stages {
stage('Build/Run') {
stage('Build Multiarch Image') {
agent { label "linux && amd64" }
steps {
withCredentials([string(
credentialsId: 'DOCKER_REGISTRY',
variable: 'DOCKER_REGISTRY'),
usernamePassword(credentialsId: 'DOCKER_REGISTRY_CRED',
passwordVariable: 'DOCKER_REGISTRY_PASS',
usernameVariable: 'DOCKER_REGISTRY_USER'
)]) {
sh "./scripts/docker_build_multiarch_image.sh ${DISTRO}"
}
}
}
stage('Run Multiarch Image') {
agent { label "linux && ${ARCH}" }
steps {
withCredentials([string(
@@ -27,7 +41,6 @@ pipeline {
passwordVariable: 'DOCKER_REGISTRY_PASS',
usernameVariable: 'DOCKER_REGISTRY_USER'
)]) {
sh "./scripts/docker_build_image.sh ${DISTRO}"
sh "./scripts/docker_run_image.sh ${DISTRO}"
}
}