chore (Jenkinsfile): package and deploy
This commit is contained in:
21
Jenkinsfile
vendored
21
Jenkinsfile
vendored
@ -12,5 +12,26 @@ pipeline {
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Package') {
|
||||
steps {
|
||||
container('chart-testing'){
|
||||
sh 'mkdir target'
|
||||
sh 'for dir in charts/*; do helm package --destination target "$dir"; done'
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Deploy') {
|
||||
steps {
|
||||
container('vault') {
|
||||
script {
|
||||
env.NEXUS_USER = sh(script: 'vault read -field=username secret/ops/account/nexus', returnStdout: true)
|
||||
env.NEXUS_PWD = sh(script: 'vault read -field=password secret/ops/account/nexus', returnStdout: true)
|
||||
}
|
||||
}
|
||||
container('alpine') {
|
||||
sh 'set +x; for chart in target/*; do curl -L -u $NEXUS_USER:$NEXUS_PWD http://registry.molgenis.org/repository/helm/ --upload-file "$chart"; done'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user