From ade7b437d274757645715da30cde5f423361fd87 Mon Sep 17 00:00:00 2001 From: Morgan McMillian Date: Wed, 8 Mar 2023 10:52:54 -0800 Subject: [PATCH] update ansible settings --- .woodpecker.yml | 3 +++ Jenkinsfile | 38 -------------------------------------- 2 files changed, 3 insertions(+), 38 deletions(-) delete mode 100644 Jenkinsfile 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>)" - // } - // } - } - } -}