@@ -4,40 +4,40 @@ The steps used during the release process
44
551 . ` git clone git@github.com:OWASP/threat-dragon.git `
662 . ` cd threat-dragon `
7- 3 . update version eg ` "version": "2.1.2 ", ` , in ` package.json ` , ` td.site/package.json ` and ` td.server/package.json `
7+ 3 . update version eg ` "version": "2.1.3 ", ` , in ` package.json ` , ` td.site/package.json ` and ` td.server/package.json `
884 . update ` buildState ` in ` td.vue/package.json ` away from ` -demo ` , usually ''
995 . ` npm install `
10106 . ` npm run build `
11117 . ` npm test `
12128 . ` npm run test:vue `
13139 . ` git add --all; git status `
14- 10 . ` git commit -m"release version 2.1.2 " `
14+ 10 . ` git commit -m"release version 2.1.3 " `
151511 . ` git push `
16- 12 . tag the release ` git tag v2.1.2 `
17- 13 . ` git push origin v2.1.2 `
16+ 12 . tag the release ` git tag v2.1.3 `
17+ 13 . ` git push origin v2.1.3 `
1818
1919The github release workflow then creates the draft release and the install images
2020
2121### Publish docker image
2222
23231 . once tagged, the github workflow pushes the docker image to docker hub
24- 2 . check using ` docker pull threatdragon/owasp-threat-dragon:v2.1.2 `
24+ 2 . check using ` docker pull threatdragon/owasp-threat-dragon:v2.1.3 `
25253 . on MacOS M1 this command may need to be used:
26- ` docker pull --platform linux/x86_64 threatdragon/owasp-threat-dragon:v2.1.2 `
26+ ` docker pull --platform linux/x86_64 threatdragon/owasp-threat-dragon:v2.1.3 `
27274 . Test using the command to run a detached container:
28- ` docker run -d -p 8080:3000 -v $(pwd)/.env:/app/.env threatdragon/owasp-threat-dragon:v2.1.2 `
28+ ` docker run -d -p 8080:3000 -v $(pwd)/.env:/app/.env threatdragon/owasp-threat-dragon:v2.1.3 `
29295 . Ideally test this release on Windows, linux and MacOS using ` http://localhost:8080/#/ `
3030
3131If the image tests correctly, promote the docker image
32- from dockerhub ` threatdragon/ ` to dockerhub ` OWASP/threat-dragon/v2.1.2 ` .
32+ from dockerhub ` threatdragon/ ` to dockerhub ` OWASP/threat-dragon/v2.1.3 ` .
3333
3434There is _ no going back_ on this last step, so it is deliberately left as a manual task:
3535
3636``` text
37- docker pull --platform linux/x86_64 threatdragon/owasp-threat-dragon:v2.1.2
38- docker tag threatdragon/owasp-threat-dragon:v2.1.2 owasp/threat-dragon:v2.1.2
39- docker push owasp/threat-dragon:v2.1.2
40- docker pull owasp/threat-dragon:v2.1.2
37+ docker pull --platform linux/x86_64 threatdragon/owasp-threat-dragon:v2.1.3
38+ docker tag threatdragon/owasp-threat-dragon:v2.1.3 owasp/threat-dragon:v2.1.3
39+ docker push owasp/threat-dragon:v2.1.3
40+ docker pull owasp/threat-dragon:v2.1.3
4141```
4242
4343ensure the tag now exists within the OWASP Docker hub: ` https://hub.docker.com/r/owasp/threat-dragon/tags `
@@ -51,9 +51,9 @@ ensure the tag now exists within the OWASP Docker hub: `https://hub.docker.com/r
5151 3.2 ` grep sha512 latest-mac.yml | head -n 2 | tail -n 1 | cut -d ":" -f 2 | base64 -d | hexdump -ve '1/1 "%.2x"' >> checksum-mac.yml `
5252 3.3 ` grep sha512 latest.yml | head -n 2 | tail -n 1 | cut -d ":" -f 2 | base64 -d | hexdump -ve '1/1 "%.2x"' >> checksum.yml `
53534 . Confirm SHA512 with:
54- 4.1 ` sha512sum Threat-Dragon-ng-2.1.1 .AppImage `
55- 4.2 ` sha512sum Threat-Dragon-ng-2.1.1 .dmg `
56- 4.3 ` sha512sum Threat-Dragon-ng-Setup-2.1.1 .exe `
54+ 4.1 ` sha512sum Threat-Dragon-ng-2.1.3 .AppImage `
55+ 4.2 ` sha512sum Threat-Dragon-ng-2.1.3 .dmg `
56+ 4.3 ` sha512sum Threat-Dragon-ng-Setup-2.1.3 .exe `
57575 . upload ` checksum*.yml ` files
5858
5959### Check demo site
@@ -67,7 +67,7 @@ ensure the tag now exists within the OWASP Docker hub: `https://hub.docker.com/r
6767
6868Update the release notes for the draft in the [ Threat Dragon release area] [ area ]
6969using the release notes using markdown provided by ` .release-note-template.md ` as a template,
70- making sure to revise ` 2.x.x ` to the correct version number such as ` 2.1.2 `
70+ making sure to revise ` 2.x.x ` to the correct version number such as ` 2.1.3 `
7171
7272Promote the release from draft to public once everything is in place
7373
0 commit comments