Compare commits
3 Commits
d3e99ef12b
...
fd576bef97
| Author | SHA1 | Date | |
|---|---|---|---|
|
fd576bef97
|
|||
|
dbcf8688a5
|
|||
|
e054cd2125
|
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user