You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: release-management.md
+39-27Lines changed: 39 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,13 +49,25 @@ This process is for production only. Skip to [Deploy](#deploy) for dev apps.
49
49
50
50
## Deploy
51
51
52
-
### Repositories and Azure Apps
53
-
54
-
The code for the Service app lives in the [clearlydefined/service](https://github.com/clearlydefined/service) repository. `<Azure App basename>` is `clearlydefined-api`.
55
-
56
-
The code for the Website app lives in the [clearlydefined/website](https://github.com/clearlydefined/website) repository. `<Azure App basename>` is `clearlydefined`.
57
-
58
-
The code for the Crawler app lives in the [clearlydefined/crawler](https://github.com/clearlydefined/crawler) repository. `<Azure App basename>` is `cdcrawler`.
Confirm that the dev health endpoint has the correct version and sha.
75
93
76
94
-[service-dev health endpoint](https://dev-api.clearlydefined.io/)
@@ -79,11 +97,9 @@ Confirm that the dev health endpoint has the correct version and sha.
79
97
80
98
### prod Deploy
81
99
82
-
#### Sevice and Website Production Deploys
83
-
84
-
At this time, the workflow based process is used for the Service and Website only. The Crawler uses Azure DevOps for production deploy. That process is described in [Crawler Production Deploy](#crawler-production-deploy).
100
+
All three apps use the common deployment workflows defined in [operations/.github/workflows](https://github.com/clearlydefined/operations/tree/main/.github/workflows) for prod deploy. The Crawler requires an additional step described in [Crawler Production Deploy - Extra Steps](#crawler-production-deploy-extra-steps).
85
101
86
-
A deploy workflow is triggered a release is `published`. The `prod` branch will be deployed to `<Azure App basename>-prod` and `<Azure App basename>-prod-europe`.
102
+
A deploy workflow is triggered when a release is `published`. The `prod` branch will be deployed to `<Azure App basename>-prod` and `<Azure App basename>-prod-europe`.
87
103
88
104
You can also deploy manually. **THIS IS UNCOMMON.** Production is setup to run the latest release. This might be used if something goes wrong after a new release is deployed to revert to the previous production release.
89
105
@@ -93,33 +109,29 @@ You can also deploy manually. **THIS IS UNCOMMON.** Production is setup to run
93
109
- select the previous known good release's tag
94
110
- click `Run workflow` button.
95
111
96
-
Confirm that the production health endpoint has the correct version and sha.
112
+
Confirm the ghcr package was created.
97
113
98
-
-[service-prod health endpoint](https://api.clearlydefined.io/)
99
-
-[website-prod health endpoint](https://clearlydefined.io/health/) (_NOTE: Not released with healthcheck at this time._)
Additionally, the crawler publishes to Docker Hub. Verify a tag for the new release was added there.
102
119
103
-
The production crawler uses [Azure DevOps builds](https://dev.azure.com/clearlydefined/ClearlyDefined/_build)for deploy. This section describes that process.
120
+
-[crawler-prod Docker Hub](https://hub.docker.com/r/clearlydefined/crawler/tags) - You should see a TAG named for newly released version. The latest TAG and the new version's TAG should have the same Digest sha and compressed size.
104
121
105
-
#### prod deploy
122
+
Confirm that the dev health endpoint has the correct version and sha.
106
123
107
-
- In Azure DevOps, click Pipelines in the left menu
108
-
- Click crawler-prod (Docker Hub) (_in main content area_)
109
-
- Click Run Pipeline button
110
-
- Select ubuntu latest as the Agent Specification
111
-
- Click Run button
124
+
-[service-prod health endpoint](https://api.clearlydefined.io/)
125
+
-[website-prod health endpoint](https://clearlydefined.io/health/) (_NOTE: Not released with healthcheck at this time._)
112
126
113
-
Confirm the docker image was built and deployed Docker Hub
127
+
#### Crawler Production Deploy - Extra Steps
114
128
115
-
-[crawler Docker images](https://hub.docker.com/r/clearlydefined/crawler/tags) - You should see a TAG named for newly released version.
129
+
Right now, the last step is to ask staff at MSFT to restart the production crawler. TODO: Working on a better process.
116
130
117
-
Confirm that the production health endpoint has the correct version and sha.
131
+
Once the final step completes, confirm that the production health endpoint has the correct version and sha.
118
132
119
133
-[crawler-prod health endpoint](https://clearlydefined-crawler-prod.azurewebsites.net/)
120
134
121
-
TODO: Is there another step to the production crawler release? I see the new Docker image, but the health endpoint has the old version.
122
-
123
135
## Verification After Deployment
124
136
125
137
After the deployment, API calls can be made to the service for verification purposes. The collection of sample API calls can be found at [tools/integration/api-test](./tools/integration/api-test).
0 commit comments