Skip to content

Commit 801537c

Browse files
committed
Update main.yml
1 parent 9611785 commit 801537c

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/main.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,31 @@ jobs:
3131
job_template: "AWS - ec2 enforce owner tag"
3232
extra_vars: "your_region=us-west-1"
3333
validate_certs: false
34+
workshop_job_provision:
35+
runs-on: ubuntu-latest
36+
name: Kick off workshop controller job
37+
steps:
38+
- name: Load the ansible-cloud action
39+
id: controller
40+
uses: ansible-cloud/[email protected]
41+
with:
42+
controller_host: ${{ secrets.CONTROLLER_HOST }}
43+
controller_username: ${{ secrets.CONTROLLER_USERNAME }}
44+
controller_password: ${{ secrets.CONTROLLER_PASSWORD }}
45+
job_template: "Workshop Provision Job"
46+
extra_vars: "ec2_name_prefix=github-action-test-sean"
47+
validate_certs: false
48+
workshop_job_teardown:
49+
runs-on: ubuntu-latest
50+
name: Kick off workshop controller job
51+
steps:
52+
- name: Load the ansible-cloud action
53+
id: controller
54+
uses: ansible-cloud/[email protected]
55+
with:
56+
controller_host: ${{ secrets.CONTROLLER_HOST }}
57+
controller_username: ${{ secrets.CONTROLLER_USERNAME }}
58+
controller_password: ${{ secrets.CONTROLLER_PASSWORD }}
59+
job_template: "Teardown Workshop"
60+
extra_vars: "ec2_name_prefix=github-action-test-sean"
61+
validate_certs: false

0 commit comments

Comments
 (0)