Skip to content

Commit 0aeafd0

Browse files
author
Alan Christie
committed
- Adds experimental support for AWX deployment (staging)
- Expects two environments - aws/im-main and awx/dls-dev
1 parent 51c547f commit 0aeafd0

File tree

1 file changed

+49
-6
lines changed

1 file changed

+49
-6
lines changed

.github/workflows/build-latest.yaml

Lines changed: 49 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,27 @@ name: build and push latest
1111
# DOCKERHUB_USERNAME
1212
# DOCKERHUB_TOKEN
1313
#
14-
# -----------
15-
# Environment (GitHub Environments)
16-
# -----------
14+
# ------------
15+
# Environments (GitHub Environments)
16+
# ------------
1717
#
18-
# Environment (none)
18+
# Environment awx/im-main
1919
#
2020
# For automated deployment we expect the following in the environment: -
2121
#
22-
# (none)
23-
22+
# AWX_HOST The fully-qualified URL to AWX.
23+
# If not set, AWX triggering does not take place.
24+
# AWX_USER The username of someone that can execute the AWX Job.
25+
# AWX_USER_PASSWORD The user's password.
26+
#
27+
# Environment awx/dls-dev
28+
#
29+
# For automated deployment we expect the following in the environment: -
30+
#
31+
# AWX_HOST The fully-qualified URL to AWX.
32+
# If not set, AWX triggering does not take place.
33+
# AWX_USER The username of someone that can execute the AWX Job.
34+
# AWX_USER_PASSWORD The user's password.
2435

2536
on:
2637
push:
@@ -52,3 +63,35 @@ jobs:
5263
run: |
5364
docker push squonk/fragnet-depict:latest
5465
docker push squonk/fragnet-search:latest
66+
67+
# Deploy 'Depict'
68+
# (to the AWX/im-main Environment)
69+
trigger-awx-depict:
70+
needs: build-and-push-latest
71+
runs-on: ubuntu-latest
72+
environment: awx/im-main
73+
steps:
74+
- uses: informaticsmatters/trigger-awx-action@v1
75+
with:
76+
template: FragnetDepict -staging-
77+
template-host: ${{ secrets.AWX_HOST }}
78+
template-user: ${{ secrets.AWX_USER }}
79+
template-user-password: ${{ secrets.AWX_USER_PASSWORD }}
80+
template-var: fs_image_tag
81+
template-var-value: latest
82+
83+
# Deploy 'Search API'
84+
# (to the AWX/DLS Development Environment)
85+
trigger-awx-search:
86+
needs: build-and-push-latest
87+
runs-on: ubuntu-latest
88+
environment: awx/dls-dev
89+
steps:
90+
- uses: informaticsmatters/trigger-awx-action@v1
91+
with:
92+
template: FragnetSearch API -staging-
93+
template-host: ${{ secrets.AWX_HOST }}
94+
template-user: ${{ secrets.AWX_USER }}
95+
template-user-password: ${{ secrets.AWX_USER_PASSWORD }}
96+
template-var: fs_image_tag
97+
template-var-value: latest

0 commit comments

Comments
 (0)