|
1 | 1 | --- |
2 | 2 | name: build and push latest |
3 | 3 |
|
| 4 | +# ----------------- |
| 5 | +# Control variables (GitHub Secrets) |
| 6 | +# ----------------- |
| 7 | +# |
| 8 | +# At the GitHub 'organisation' or 'project' level you must have the following |
| 9 | +# GitHub 'Repository Secrets' defined (i.e. via 'Settings -> Secrets'): - |
| 10 | +# |
| 11 | +# DOCKERHUB_USERNAME |
| 12 | +# DOCKERHUB_TOKEN |
| 13 | +# |
| 14 | +# ------------ |
| 15 | +# Environments (GitHub Environments) |
| 16 | +# ------------ |
| 17 | +# |
| 18 | +# Environment awx/im-main |
| 19 | +# |
| 20 | +# For automated deployment we expect the following in the environment: - |
| 21 | +# |
| 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. |
| 35 | + |
4 | 36 | on: |
5 | 37 | push: |
6 | 38 | branches: |
|
31 | 63 | run: | |
32 | 64 | docker push squonk/fragnet-depict:latest |
33 | 65 | 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