build on amd64

This commit is contained in:
2025-08-03 10:30:15 -05:00
parent c4204822e0
commit 07207f6e82
6 changed files with 90 additions and 28 deletions

29
Jenkinsfile vendored
View File

@@ -1,9 +1,9 @@
pipeline {
agent none
stages {
stage('Build Matrix') {
stage('Build Docker Image Matrix') {
matrix {
agent { label "linux" }
agent { label "linux && amd64" }
axes {
axis {
name 'DISTRO'
@@ -12,8 +12,31 @@ pipeline {
}
}
stages {
stage('Build') {
stage('Build Docker Image') {
steps {
sh "./scripts/docker_build_image.sh ${DISTRO}"
sh "./scripts/docker_save_image.sh ${DISTRO}"
stash includes: "gitignore/docker/${DISTRO}.tar.zst", name: "${DISTRO}-stash"
}
}
}
}
}
stage('Run Docker Image Matrix') {
matrix {
agent { label "linux && arm64" }
axes {
axis {
name 'DISTRO'
values 'debian:bookworm', 'ubuntu:24.04', 'ubuntu:22.04',
'archlinux:latest', 'fedora:42'
}
}
stages {
stage('Run Docker Image') {
steps {
unstash "${DISTRO}-stash"
sh "./scripts/docker_load_image.sh ${DISTRO}"
sh "./scripts/docker_run_amd64_image_on_arm64.sh ${DISTRO}"
}
}