forked from mirrors/thatmattlove-hyperglass
update upgrade docs & version updating script
This commit is contained in:
parent
7eb4f5ca93
commit
0c643c6abd
2 changed files with 6 additions and 1 deletions
|
|
@ -4,7 +4,8 @@
|
|||
cd /opt/hyperglass
|
||||
docker compose down
|
||||
docker compose rm -f
|
||||
git pull
|
||||
git fetch
|
||||
git checkout v2.0.1
|
||||
docker compose build
|
||||
docker compose up
|
||||
```
|
||||
|
|
|
|||
|
|
@ -18,10 +18,14 @@ PYPROJECT_PATTERN = re.compile(r"^version\s\=\s\"(.+)\"$")
|
|||
CONSTANTS = Path(__file__).parent / "hyperglass" / "constants.py"
|
||||
CONSTANT_PATTERN = re.compile(r"^__version__\s\=\s\"(.+)\"$")
|
||||
|
||||
UPGRADE_DOC = Path(__file__).parent / "docs" / "pages" / "installation" / "upgrading.mdx"
|
||||
UPGRADE_DOC_PATTERN = re.compile(r"^git\scheckout\sv(.+)$")
|
||||
|
||||
UPGRADES = (
|
||||
("package.json", PACKAGE_JSON, PACKAGE_JSON_PATTERN),
|
||||
("pyproject.toml", PYPROJECT_TOML, PYPROJECT_PATTERN),
|
||||
("constants.py", CONSTANTS, CONSTANT_PATTERN),
|
||||
("upgrading.mdx", UPGRADE_DOC, UPGRADE_DOC_PATTERN),
|
||||
)
|
||||
|
||||
cli = typer.Typer(name="version", no_args_is_help=True)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue