mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-05-10 04:19:29 +00:00
Add Jenkinsfile to produce the builder images
This commit is contained in:
parent
2bbad24bfb
commit
3c581d26f1
34
ci/Jenkinsfile.builders
Normal file
34
ci/Jenkinsfile.builders
Normal file
@ -0,0 +1,34 @@
|
||||
pipeline {
|
||||
agent { label 'linux' }
|
||||
|
||||
options {
|
||||
timestamps()
|
||||
timeout(time: 20, unit: 'MINUTES')
|
||||
buildDiscarder(logRotator(
|
||||
numToKeepStr: '10',
|
||||
daysToKeepStr: '30',
|
||||
))
|
||||
}
|
||||
|
||||
parameters {
|
||||
string(
|
||||
name: 'REPOSITORY',
|
||||
description: 'Name of container registry repository',
|
||||
defaultValue: params.REPOSITORY ?: 'wakuorg',
|
||||
)
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Build & Push') {
|
||||
steps {
|
||||
withDockerRegistry([credentialsId: "dockerhub-vacorgbot-api-token", url: ""]) {
|
||||
dir("docker/base") {
|
||||
sh "./build.sh --registry docker.io --repository ${params.REPOSITORY} --latest --push all"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} // stages
|
||||
|
||||
} // pipeline
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user