Compare commits

...

3 Commits

Author SHA1 Message Date
fd576bef97 Update rulebook 2023-12-29 11:45:38 -05:00
dbcf8688a5 Remove temporary vars 2023-12-29 11:43:34 -05:00
e054cd2125 Update webhook 2023-12-29 11:34:34 -05:00
2 changed files with 13 additions and 8 deletions

View File

@@ -2,10 +2,6 @@
- name: Deploy BAB Frontend Application
hosts: bab1.mgmt.toal.ca
become: false
vars:
artifact_version: 0.0.2
artifact_job: 11
artifact_url: https://gitea.toal.ca/oys/bab-app/actions/runs/{{ artifact_job }}/artifacts/build-artifact-{{ artifact_version }}.{{ artifact_job }}
tasks:
- name: Download zip file from url
ansible.builtin.get_url:

View File

@@ -6,9 +6,18 @@
ansible.eda.webhook:
port: 5000
host: 0.0.0.0
filters:
- ansible.eda.dashes_to_underscores:
rules:
- name: Show payload
condition: 1 == 1
- name: Create facts
condition:
all:
- event.payload is defined
- event.payload.artifact_url
action:
debug:
run_job_template:
name: bab-deploy-application
organization: OYS
job_args:
extra_vars:
artifact_url: event.payload.artifact_url