Compare commits
3 Commits
d3e99ef12b
...
fd576bef97
| Author | SHA1 | Date | |
|---|---|---|---|
|
fd576bef97
|
|||
|
dbcf8688a5
|
|||
|
e054cd2125
|
@@ -2,10 +2,6 @@
|
|||||||
- name: Deploy BAB Frontend Application
|
- name: Deploy BAB Frontend Application
|
||||||
hosts: bab1.mgmt.toal.ca
|
hosts: bab1.mgmt.toal.ca
|
||||||
become: false
|
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:
|
tasks:
|
||||||
- name: Download zip file from url
|
- name: Download zip file from url
|
||||||
ansible.builtin.get_url:
|
ansible.builtin.get_url:
|
||||||
|
|||||||
@@ -6,9 +6,18 @@
|
|||||||
ansible.eda.webhook:
|
ansible.eda.webhook:
|
||||||
port: 5000
|
port: 5000
|
||||||
host: 0.0.0.0
|
host: 0.0.0.0
|
||||||
|
filters:
|
||||||
|
- ansible.eda.dashes_to_underscores:
|
||||||
rules:
|
rules:
|
||||||
- name: Show payload
|
- name: Create facts
|
||||||
condition: 1 == 1
|
condition:
|
||||||
|
all:
|
||||||
|
- event.payload is defined
|
||||||
|
- event.payload.artifact_url
|
||||||
action:
|
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