Skip to content

Commit

Permalink
release version 2.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jon gadsden committed Apr 30, 2023
1 parent 9ddf9bb commit b0a5671
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 23 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "threat-dragon",
"version": "2.0.1",
"version": "2.0.2",
"private": true,
"scripts": {
"build": "npm-run-all build:vue build:server",
Expand Down
42 changes: 23 additions & 19 deletions release-process.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,40 @@ The steps used during the release process
## Tag the release
1. `git clone [email protected]:OWASP/threat-dragon.git`
2. `cd threat-dragon`
3. update version declaration, eg `"version": "2.0.0",`, in `package.json`, `td.site/package.json` and `td.server/package.json`
4. `npm install`
5. `npm run build`
6. `npm test`
7. `git commit -a -m"<some release message>"`
8. `git push`
9. tag the release with appropriate subver `git tag v2.0.0`
10. `git push origin v2.0.0`
3. update version declaration, eg `"version": "2.0.2",`, in `package.json`, `td.site/package.json` and `td.server/package.json`
4. update build state in `td.server/package.json`
5. `pnpm install`
6. `npm run build`
7. `npm test`
8. `npm run test:vue`
9. add all changes `git add --all`
10. `git commit -a -m"release version 2.0.2"`
11. `git push`
12. tag the release `git tag v2.0.2`
13. `git push origin v2.0.2`

The github release workflow then creates the draft release and creates all the install images
The github release workflow then creates the draft release and the install images

### Publish docker image
1. once tagged, the github workflow pushes the docker image to docker hub
2. check using `docker pull threatdragon/owasp-threat-dragon:v2.0.0`
3. on MacOS M1 this command may need to be used `docker pull --platform linux/x86_64 threatdragon/owasp-threat-dragon:v2.0.0`
4. Test this release; ideally on Windows, linux and MacOS
2. check using `docker pull threatdragon/owasp-threat-dragon:v2.0.2`
3. on MacOS M1 this command may need to be used `docker pull --platform linux/x86_64 threatdragon/owasp-threat-dragon:v2.0.2`
4. Test using the command to run a detached container: `docker run -d -p 8080:3000 -v $(pwd)/.env:/app/.env threatdragon/owasp-threat-dragon:v2.0.2`
5. Ideally test this release on Windows, linux and MacOS

If the image tests correctly, promote the docker image from dockerhub `threatdragon/` to dockerhub `OWASP/threat-dragon/v2.0.2`.

If the image tests corrrectly, promote the docker image from dockerhub `threatdragon/`
to dockerhub `OWASP/threat-dragon/v2.0.0`.
There is _no going back_ on this last step, so it is deliberately left as a manual task:

```
docker pull threatdragon/owasp-threat-dragon:v2.0.0
docker tag threatdragon/owasp-threat-dragon:v2.0.0 owasp/threat-dragon:v2.0.0
docker push owasp/threat-dragon:v2.0.0
docker pull --platform linux/x86_64 threatdragon/owasp-threat-dragon:v2.0.2
docker tag threatdragon/owasp-threat-dragon:v2.0.2 owasp/threat-dragon:v2.0.2
docker push owasp/threat-dragon:v2.0.2
```

### Update release notes
All going well then update the release notes for the draft in the
[Threat Dragon release area](https://github.com/OWASP/threat-dragon/releases) and make public
Update the release notes for the draft in the
[Threat Dragon release area](https://github.com/OWASP/threat-dragon/releases) and promote the release from draft to public

### Announce
Finally ensure Threat Dragon announces the new release, for example on the OWASP slack channels
2 changes: 1 addition & 1 deletion td.server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "threat-dragon-server",
"version": "2.0.1",
"version": "2.0.2",
"private": true,
"scripts": {
"build": "npm-run-all clean:dist transpile",
Expand Down
4 changes: 2 additions & 2 deletions td.vue/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "threat-dragon",
"productName": "Threat Dragon",
"version": "2.0.1",
"version": "2.0.2",
"private": true,
"scripts": {
"build": "vue-cli-service build --no-unsafe-inline",
Expand Down Expand Up @@ -38,7 +38,7 @@
},
"license": "Apache-2.0",
"homepage": "https://owasp.org/www-project-threat-dragon/",
"buildState": "-demo",
"buildState": "",
"repository": {
"type": "git",
"url": "git://github.com/OWASP/threat-dragon.git"
Expand Down

0 comments on commit b0a5671

Please sign in to comment.