Jenkinsfile for renewing certs
This commit is contained in:
35
dockerfiles/services/sslproxy/renew.Jenkinsfile
Normal file
35
dockerfiles/services/sslproxy/renew.Jenkinsfile
Normal file
@@ -0,0 +1,35 @@
|
||||
pipeline {
|
||||
environment {
|
||||
APP_NAME = 'sslproxy'
|
||||
WORKDIR = 'dockerfiles/services/sslproxy'
|
||||
}
|
||||
|
||||
agent { label 'docker' }
|
||||
options {
|
||||
buildDiscarder(logRotator(numToKeepStr: '2'))
|
||||
}
|
||||
triggers {
|
||||
cron('@monthly')
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('prepare') {
|
||||
steps {
|
||||
checkout scm
|
||||
sh 'ls'
|
||||
}
|
||||
}
|
||||
|
||||
stage('renew') {
|
||||
steps {
|
||||
dir(WORKDIR) {
|
||||
withDockerRegistry(credentialsId: 'b11d7f1a-81ac-4daf-8842-56afc0d2370e', url: 'http://dkregistry.xai-corp.net:5000') {
|
||||
sh "pwd"
|
||||
sh "xai certbot renew"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user