Skip to content

Commit 3bdb53b

Browse files
author
Alan Christie
committed
ci: Production deployment now occurs during stable image
1 parent 4834f9b commit 3bdb53b

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

.github/workflows/build-stable.yaml

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
with:
5757
install: true
5858
# It's an official tag so push
59-
# the tagged images and 'latest' and 'stable'
59+
# the tagged images and a 'stable' form
6060
- name: Push stable
6161
run: |
6262
docker tag squonk/fragnet-depict:latest squonk/fragnet-depict:stable
@@ -67,3 +67,35 @@ jobs:
6767
docker tag squonk/fragnet-search:latest squonk/fragnet-search:${{ env.GITHUB_REF_SLUG }}
6868
docker push squonk/fragnet-search:stable
6969
docker push squonk/fragnet-search:${{ env.GITHUB_REF_SLUG }}
70+
71+
# Deploy 'Depict'
72+
# (to the AWX/im-main Environment)
73+
trigger-awx-depict:
74+
needs: push-stable
75+
runs-on: ubuntu-latest
76+
environment: awx/im-main
77+
steps:
78+
- uses: informaticsmatters/trigger-awx-action@v1
79+
with:
80+
template: FragnetDepict
81+
template-host: ${{ secrets.AWX_HOST }}
82+
template-user: ${{ secrets.AWX_USER }}
83+
template-user-password: ${{ secrets.AWX_USER_PASSWORD }}
84+
template-var: fs_image_tag
85+
template-var-value: ${{ env.GITHUB_REF_SLUG }}
86+
87+
# Deploy 'Search API'
88+
# (to the AWX/DLS Development Environment)
89+
trigger-awx-search:
90+
needs: push-stable
91+
runs-on: ubuntu-latest
92+
environment: awx/dls-dev
93+
steps:
94+
- uses: informaticsmatters/trigger-awx-action@v1
95+
with:
96+
template: FragnetSearch API
97+
template-host: ${{ secrets.AWX_HOST }}
98+
template-user: ${{ secrets.AWX_USER }}
99+
template-user-password: ${{ secrets.AWX_USER_PASSWORD }}
100+
template-var: fs_image_tag
101+
template-var-value: ${{ env.GITHUB_REF_SLUG }}

0 commit comments

Comments
 (0)