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:07:00 -08:00
parent 73b8d8b47e
commit 2cffd47ce6
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'
)
}
}
}
}