update ansible settings
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
8effbf846c
commit
ade7b437d2
2 changed files with 3 additions and 38 deletions
|
@ -14,6 +14,9 @@ pipeline:
|
||||||
playbook: main.yaml
|
playbook: main.yaml
|
||||||
inventory: hosts.ini
|
inventory: hosts.ini
|
||||||
syntax_check: true
|
syntax_check: true
|
||||||
|
user: igor
|
||||||
|
private_key:
|
||||||
|
from_secret: igor_key
|
||||||
|
|
||||||
notify:
|
notify:
|
||||||
image: plugins/matrix
|
image: plugins/matrix
|
||||||
|
|
38
Jenkinsfile
vendored
38
Jenkinsfile
vendored
|
@ -1,38 +0,0 @@
|
||||||
pipeline {
|
|
||||||
agent { label 'fedora' }
|
|
||||||
stages {
|
|
||||||
stage('Build site') {
|
|
||||||
steps {
|
|
||||||
// mattermostSend "Site build started - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
|
||||||
sh 'git submodule update --init'
|
|
||||||
sh 'hugo'
|
|
||||||
}
|
|
||||||
// post {
|
|
||||||
// success {
|
|
||||||
// mattermostSend color: "good", message: "Site build success - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
|
||||||
// }
|
|
||||||
// failure {
|
|
||||||
// mattermostSend color: "danger", message: "Site build failure - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
stage('Deploy site') {
|
|
||||||
steps {
|
|
||||||
// mattermostSend "Site deploy started - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
|
||||||
ansiblePlaybook(
|
|
||||||
playbook: 'main.yaml',
|
|
||||||
inventory: 'hosts.ini',
|
|
||||||
credentialsId: 'igor'
|
|
||||||
)
|
|
||||||
}
|
|
||||||
// post {
|
|
||||||
// success {
|
|
||||||
// mattermostSend color: "good", message: "Site deploy success - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
|
||||||
// }
|
|
||||||
// failure {
|
|
||||||
// mattermostSend color: "danger", message: "Site deploy failure - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in a new issue