Improve docs and deploy script
This commit is contained in:
parent
5d933cd0ec
commit
f24d2ca01e
17
README.md
17
README.md
|
|
@ -181,15 +181,23 @@ Deployment happens manually via Bitbucket Pipelines
|
||||||
|
|
||||||
Bitbucket Pipelines name: myvbv
|
Bitbucket Pipelines name: myvbv
|
||||||
https://myvbv.control.iterativ.ch/
|
https://myvbv.control.iterativ.ch/
|
||||||
https://myvbv.iterativ.ch/
|
https://myvbv.iterativ.ch/v
|
||||||
|
|
||||||
Deployment happens manually via Bitbucket Pipelines
|
Deployment happens manually via Bitbucket Pipelines
|
||||||
|
|
||||||
|
|
||||||
### CapRover feature branch deployment
|
### CapRover feature branch deployment
|
||||||
|
|
||||||
You can deploy every feature branch to CapRover directly from Bitbucket Pipelines
|
You can deploy every feature branch to CapRover directly from Bitbucket Pipelines
|
||||||
with a manual step.
|
with a manual step. Either in the "normal" pipeline by running "deploy feature"
|
||||||
|
as last manual step.
|
||||||
|
|
||||||
|
You can also select deploy-step direclty under
|
||||||
|
|
||||||
|
`Branches > Actions > Run pipeline` for a branch
|
||||||
|
and then `custom: deploy-feature-branch -> Run` in the modal.
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
When you run caprover_deploy.sh without arguments, it will deploy the current branch
|
When you run caprover_deploy.sh without arguments, it will deploy the current branch
|
||||||
|
|
||||||
|
|
@ -199,6 +207,9 @@ When you run caprover_deploy.sh without arguments, it will deploy the current br
|
||||||
|
|
||||||
### Cleanup caprover feature branch deployments
|
### Cleanup caprover feature branch deployments
|
||||||
|
|
||||||
|
You can delete the CapRover App and DB directly in the CapRover interface
|
||||||
|
or use the `caprover_cleanup.py` script.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# by default it will delete all vbv-feature-* apps
|
# by default it will delete all vbv-feature-* apps
|
||||||
python caprover_cleanup.py
|
python caprover_cleanup.py
|
||||||
|
|
|
||||||
|
|
@ -64,6 +64,11 @@ def main(app_name, image_name, environment_file):
|
||||||
|
|
||||||
default_allowed_hosts = f"{app_name}.iterativ.ch,{app_name}.control.iterativ.ch"
|
default_allowed_hosts = f"{app_name}.iterativ.ch,{app_name}.control.iterativ.ch"
|
||||||
|
|
||||||
|
app_environment = env.str("IT_APP_ENVIRONMENT", "dev-feature")
|
||||||
|
if app_environment == "local":
|
||||||
|
# local is never the correct value...
|
||||||
|
app_environment = "dev-feature"
|
||||||
|
|
||||||
cap.create_and_update_app(
|
cap.create_and_update_app(
|
||||||
app_name=app_name,
|
app_name=app_name,
|
||||||
enable_ssl=True,
|
enable_ssl=True,
|
||||||
|
|
@ -72,7 +77,7 @@ def main(app_name, image_name, environment_file):
|
||||||
image_name=image_name,
|
image_name=image_name,
|
||||||
container_http_port=7555,
|
container_http_port=7555,
|
||||||
environment_variables={
|
environment_variables={
|
||||||
"IT_APP_ENVIRONMENT": env.str("IT_APP_ENVIRONMENT", "dev-feature"),
|
"IT_APP_ENVIRONMENT": app_environment,
|
||||||
"IT_DEFAULT_ADMIN_PASSWORD": env.str(
|
"IT_DEFAULT_ADMIN_PASSWORD": env.str(
|
||||||
"IT_DEFAULT_ADMIN_PASSWORD", "ACEEs0DCmNaPxdoNV8vhccuCTRl9b"
|
"IT_DEFAULT_ADMIN_PASSWORD", "ACEEs0DCmNaPxdoNV8vhccuCTRl9b"
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 491 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 381 KiB |
Loading…
Reference in New Issue