replace jenkins build with woodpecker-ci
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Morgan McMillian 2023-03-09 14:06:03 -08:00
parent 13c26038e1
commit 7f1edd761e
2 changed files with 11 additions and 14 deletions

11
.woodpecker.yml Normal file
View file

@ -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

14
Jenkinsfile vendored
View file

@ -1,14 +0,0 @@
pipeline {
agent { label "ansible" }
stages {
stage('Execute playbook') {
steps {
ansiblePlaybook(
playbook: 'main.yaml',
inventory: 'hosts.ini',
credentialsId: 'igor'
)
}
}
}
}