feat(cli): add a captain-update script to generate a report of all applications to update

This commit is contained in:
Pierre Martin
2023-05-08 09:51:48 +02:00
parent 640766e8a7
commit e4a01bb96c
2 changed files with 235 additions and 1 deletions

View File

@@ -1,3 +1,18 @@
# Tools
Tools allowing to keep sans.pub up-to-date and automate common recurring actions.
Tools allowing to keep sans.pub up-to-date and automate common recurring actions.
## `captain-update.mjs`
Allow to generate a report of all versions of applications deployed on sans.pub, with the current status of each application and whether they need an update or not.
It can serve as a base for a changelog entry, and as a TODO list for updating applications.
Example:
```shell
CAPTAIN_DOMAIN=xxxx CAPTAIN_PASSWORD='yyy' ./captain-update.mjs > /path/to/site/src/changelog/2023-05-08.md
```
### TODO
- [ ] try to update applications automatically from a prompt