This commit is contained in:
2025-08-05 18:37:23 -05:00
parent 407213af8c
commit 1dbd1e781f
7 changed files with 26 additions and 44 deletions

28
Jenkinsfile vendored
View File

@@ -1,31 +1,27 @@
pipeline {
agent none
environment { DEBUG = "1" }
stages {
stage('Build Docker Image Matrix') {
stage('Build in Docker') {
matrix {
axes {
axis {
name 'DISTRO'
values 'debian-bookworm', 'ubuntu-24.04', 'ubuntu-22.04',
'archlinux-latest', 'fedora-42'
values 'ubuntu-22.04', 'ubuntu-24.04',
'debian-bookworm', 'fedora-42'
// 'archlinux-latest'
}
axis {
name 'ARCH'
values 'amd64', 'arm64'
}
}
stages {
stage('Build Docker Image') {
agent { label "linux && amd64" }
stage('Build/Run') {
agent { label "linux && ${ARCH}" }
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') {
agent { label "linux && arm64" }
steps {
unstash "${DISTRO}-stash"
sh "./scripts/docker_load_image.sh ${DISTRO}"
sh "./scripts/docker_run_amd64_image_on_arm64.sh ${DISTRO}"
sh "./scripts/docker_run_image.sh ${DISTRO}"
}
}
}