mirror of
https://github.com/levogevo/ffmpeg-builder.git
synced 2026-01-15 19:06:17 +00:00
81 lines
3.1 KiB
Groovy
81 lines
3.1 KiB
Groovy
pipeline {
|
|
agent none
|
|
environment { DEBUG = "1" }
|
|
stages {
|
|
stage('Build Docker Image') {
|
|
matrix {
|
|
axes {
|
|
axis {
|
|
name 'DISTRO'
|
|
values 'ubuntu-24.04',
|
|
'fedora-42',
|
|
'fedora-41',
|
|
'debian-13',
|
|
'archlinux-latest'
|
|
}
|
|
}
|
|
stages {
|
|
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 Docker Image') {
|
|
matrix {
|
|
axes {
|
|
axis {
|
|
name 'DISTRO'
|
|
values 'ubuntu-24.04',
|
|
'fedora-42',
|
|
'fedora-41',
|
|
'debian-13',
|
|
'archlinux-latest'
|
|
}
|
|
axis {
|
|
name 'LABEL_ARCH'
|
|
values 'arm64', 'amd64'
|
|
}
|
|
axis {
|
|
name 'STATIC'
|
|
values 'true', 'false'
|
|
}
|
|
axis {
|
|
name 'OPT_AND_LTO'
|
|
values 'OPT=0 LTO=false',
|
|
'OPT=2 LTO=false',
|
|
'OPT=3 LTO=true'
|
|
}
|
|
}
|
|
stages {
|
|
stage('Run Multiarch Image') {
|
|
agent { label "linux && ${LABEL_ARCH}" }
|
|
steps {
|
|
withCredentials([string(
|
|
credentialsId: 'DOCKER_REGISTRY',
|
|
variable: 'DOCKER_REGISTRY'),
|
|
usernamePassword(credentialsId: 'DOCKER_REGISTRY_CRED',
|
|
passwordVariable: 'DOCKER_REGISTRY_PASS',
|
|
usernameVariable: 'DOCKER_REGISTRY_USER'
|
|
)]) {
|
|
sh "STATIC=${STATIC} ${OPT_AND_LTO} ./scripts/docker_run_image.sh ${DISTRO}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|