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' - ) - } - } - } -}