nrec-ansible/.woodpecker.yml

28 lines
634 B
YAML
Raw Normal View History

2022-01-10 20:59:35 +00:00
pipeline:
run-playbooks:
image: quay.io/ansible/ansible-runner:latest
2022-01-10 21:04:31 +00:00
environment:
2022-01-11 10:08:57 +00:00
- RUNNER_PLAYBOOK=main.yml
2022-01-10 21:23:30 +00:00
commands:
- mkdir env
2022-01-10 21:33:01 +00:00
- echo $SSH_KEY | base64 -d > env/ssh_key
2022-01-10 21:23:30 +00:00
- ansible-runner run `pwd`
2022-01-10 21:18:31 +00:00
secrets: [ssh_key]
2022-01-10 21:04:31 +00:00
2022-01-10 20:59:35 +00:00
when:
branch: master
event: push
2022-01-11 10:22:01 +00:00
notify:
image: registry.t-juice.club/plugin-gotify
pull: true
settings:
gotify_url: https://gotify.t-juice.club
gotify_token:
from_secret: gotify_token
title: redeployed ansible-nrec
message: updated to ${CI_COMMIT_SHA:0:8}
when:
branch: master
event: [push]