mirror of
https://github.com/waku-org/nwaku.git
synced 2025-02-05 03:25:04 +00:00
35 lines
719 B
Plaintext
35 lines
719 B
Plaintext
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
|
|
|