replace jenkins build with woodpecker-ci
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
73b8d8b47e
commit
2cffd47ce6
2 changed files with 11 additions and 14 deletions
11
.woodpecker.yml
Normal file
11
.woodpecker.yml
Normal 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
14
Jenkinsfile
vendored
|
@ -1,14 +0,0 @@
|
||||||
pipeline {
|
|
||||||
agent { label "ansible" }
|
|
||||||
stages {
|
|
||||||
stage('Execute playbook') {
|
|
||||||
steps {
|
|
||||||
ansiblePlaybook(
|
|
||||||
playbook: 'main.yaml',
|
|
||||||
inventory: 'hosts.ini',
|
|
||||||
credentialsId: 'igor'
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in a new issue