@@ -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
2536on :
2637 push :
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