diff --git a/.woodpecker.yml b/.woodpecker.yml index 0a19cc4..b1f3172 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -14,6 +14,9 @@ pipeline: playbook: main.yaml inventory: hosts.ini syntax_check: true + user: igor + private_key: + from_secret: igor_key notify: image: plugins/matrix diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index 2c2e433..0000000 --- a/Jenkinsfile +++ /dev/null @@ -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>)" - // } - // } - } - } -}