https://github.com/victorock/ansible-collection-webhook
Tower Webhook Handler for CI/CD pipelines
https://github.com/victorock/ansible-collection-webhook
Last synced: 3 months ago
JSON representation
Tower Webhook Handler for CI/CD pipelines
- Host: GitHub
- URL: https://github.com/victorock/ansible-collection-webhook
- Owner: victorock
- License: gpl-3.0
- Created: 2019-12-03T08:14:44.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-03T16:03:21.000Z (over 5 years ago)
- Last Synced: 2025-01-11T06:10:14.833Z (4 months ago)
- Language: Python
- Size: 22.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# webhook_handler
Tower Webhook Handler for CI/CD pipelinesEvents References:
Github: https://developer.github.com/v3/activity/events/types/
Gitlab: https://docs.gitlab.com/ee/user/project/integrations/webhooks.htmlExample of `.tower.yaml` file hosted in the repository, defining:
- `workflows` the workflows adopting pre-existing job_templates in tower.
- `pipelines` the pipelines based on webhook events.
```YAML
---
workflows:
# Workflow to Build
- name: "myapp.build"
schema:
- job_template: "myapp.build.step1"
success:
- job_template: "myapp.build.step2"
success:
- job_template: "myapp.build.step3"# Workflow to Test
- name: "myapp.test"
schema:
- job_template: "myapp.test.step1"
success:
- job_template: "myapp.test.step2"
success:
- job_template: "myapp.test.step3"# Workflow to Deploy
- name: "myapp.deploy"
schema:
- job_template: "myapp.deploy.step1"
success:
- job_template: "myapp.deploy.step2"
success:
- job_template: "myapp.deploy.step3"- name: "myapp.pipeline"
schema:
- workflow_template: "myapp.pipeline.build"
success:
- job_template: "myapp.pipeline.test"
success:
- job_template: "myapp.pipeline.deploy"# Only triggers workflows
pipelines:
- name: "myapp.build"
on:
- "push"
- name: "myapp.pipeline"
on:
- "release"
```