update to build and publish pipelines
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
parent
8effbf846c
commit
3895387b8a
1 changed files with 11 additions and 5 deletions
|
@ -7,13 +7,19 @@ clone:
|
||||||
pipeline:
|
pipeline:
|
||||||
build:
|
build:
|
||||||
image: plugins/hugo
|
image: plugins/hugo
|
||||||
|
settings:
|
||||||
|
validate: true
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
image: plugins/ansible
|
image: alpine:latest
|
||||||
settings:
|
secrets: [ ssh_key ]
|
||||||
playbook: main.yaml
|
environment:
|
||||||
inventory: hosts.ini
|
- ANSIBLE_HOST_KEY_CHECKING=False
|
||||||
syntax_check: true
|
commands:
|
||||||
|
- apk add --update ansible
|
||||||
|
- printf "$SSH_KEY" > privateKey
|
||||||
|
- chmod 600 privateKey
|
||||||
|
- ansible-playbook --user igor --inventory hosts.ini --private-key privateKey main.yaml
|
||||||
|
|
||||||
notify:
|
notify:
|
||||||
image: plugins/matrix
|
image: plugins/matrix
|
||||||
|
|
Loading…
Reference in a new issue