From 2cffd47ce6fff694b464e8de4da07e0ab697108c Mon Sep 17 00:00:00 2001 From: Morgan McMillian Date: Thu, 9 Mar 2023 14:07:00 -0800 Subject: [PATCH] replace jenkins build with woodpecker-ci --- .woodpecker.yml | 11 +++++++++++ Jenkinsfile | 14 -------------- 2 files changed, 11 insertions(+), 14 deletions(-) create mode 100644 .woodpecker.yml delete mode 100644 Jenkinsfile diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..b2c5454 --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,11 @@ +pipeline: + publish: + image: alpine:latest + secrets: [ ssh_key ] + environment: + - ANSIBLE_HOST_KEY_CHECKING=False + commands: + - apk add --update ansible rsync openssh + - printf "$SSH_KEY" > privateKey + - chmod 600 privateKey + - ansible-playbook --user igor --inventory hosts.ini --private-key privateKey main.yaml diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index 796a2c3..0000000 --- a/Jenkinsfile +++ /dev/null @@ -1,14 +0,0 @@ -pipeline { - agent { label "ansible" } - stages { - stage('Execute playbook') { - steps { - ansiblePlaybook( - playbook: 'main.yaml', - inventory: 'hosts.ini', - credentialsId: 'igor' - ) - } - } - } -}