replace jenkins build with woodpecker-ci
ci/woodpecker/push/woodpecker Pipeline was successful Details

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