This commit is contained in:
2024-12-02 19:48:02 +03:00
commit 4de3f34a9d
2 changed files with 22 additions and 0 deletions

17
Jenkinsfile vendored Normal file
View File

@@ -0,0 +1,17 @@
@Library('SHS.Platforms') _
node {
stage("Download sources") {
checkout scm
}
def pl = new org.SHS.Platforms(this)
pl.get()
pl.forEach ({ dist ->
def args = "./all"
args += " --build-arg image_from=${dist.docker_image}"
args += " --build-arg build_type=Debug"
//print "${env.DOCKER_PREFIX}/${dist.docker_image} -> ${args}"
docker.build("${dist.docker_image}-debug", args)
},
ondemand: true
)
}

5
all/Dockerfile Normal file
View File

@@ -0,0 +1,5 @@
ARG image_from
FROM ${image_from}
ARG build_type
ENV BUILD_TYPE=${build_type}