@@ -10,11 +10,8 @@ The Django application gets built into a [Docker image][dockerfile] with [NGINX]
10
10
The application is deployed to an [ Azure Web App Container] [ az-webapp ] using three separate environments for ` dev ` , ` test ` ,
11
11
and ` prod ` .
12
12
13
- A [ GitHub Action] [ gh-actions ] per environment is responsible for building that branch's image and pushing to [ GitHub Container
14
- Registry (GHCR)] [ ghcr ] .
15
-
16
- GitHub POSTs a [ webhook] [ gh-webhooks ] to the Azure Web App when an [ image is published to GHCR] [ gh-webhook-event ] , telling
17
- Azure to restart the app and pull the latest image.
13
+ The [ Deploy] ( deploy-workflow ) workflow is responsible for building that branch's image and pushing to [ GitHub Container
14
+ Registry (GHCR)] [ ghcr ] . It also deploys to the Azure Web App, telling Azure to restart the app and pull the latest image.
18
15
19
16
You can view what Git commit is deployed for a given environment by visitng the URL path ` /static/sha.txt ` .
20
17
@@ -34,9 +31,7 @@ Docker images for each of the deploy branches are available from GitHub Containe
34
31
[ oet ] : https://techblog.cdt.ca.gov/2020/06/cdt-taking-the-lead-in-digital-transformation/
35
32
[ app-service-containers ] : https://docs.microsoft.com/en-us/azure/app-service/configure-custom-container
36
33
[ app-service ] : https://docs.microsoft.com/en-us/azure/app-service/overview
34
+ [ deploy-workflow ] : https://github.com/cal-itp/benefits/blob/dev/.github/workflows/deploy.yml
37
35
[ dockerfile ] : https://github.com/cal-itp/benefits/blob/dev/Dockerfile
38
36
[ az-webapp ] : https://azure.microsoft.com/en-us/services/app-service/containers/
39
- [ gh-actions ] : https://docs.github.com/en/actions
40
- [ gh-webhook-event ] : https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#package
41
- [ gh-webhooks ] : https://docs.github.com/en/github-ae@latest/developers/webhooks-and-events/webhooks
42
37
[ ghcr ] : https://github.com/features/packages
0 commit comments