Merged in feature/feature-deploy-readme (pull request #416)
Improve docs and deploy script
This commit is contained in:
commit
2e6c305cea
17
README.md
17
README.md
|
|
@ -181,15 +181,23 @@ Deployment happens manually via Bitbucket Pipelines
|
|||
|
||||
Bitbucket Pipelines name: myvbv
|
||||
https://myvbv.control.iterativ.ch/
|
||||
https://myvbv.iterativ.ch/
|
||||
|
||||
https://myvbv.iterativ.ch/v
|
||||
Deployment happens manually via Bitbucket Pipelines
|
||||
|
||||
|
||||
### CapRover feature branch deployment
|
||||
|
||||
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
|
||||
|
||||
|
|
@ -199,6 +207,9 @@ When you run caprover_deploy.sh without arguments, it will deploy the current br
|
|||
|
||||
### 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
|
||||
# by default it will delete all vbv-feature-* apps
|
||||
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"
|
||||
|
||||
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(
|
||||
app_name=app_name,
|
||||
enable_ssl=True,
|
||||
|
|
@ -72,7 +77,7 @@ def main(app_name, image_name, environment_file):
|
|||
image_name=image_name,
|
||||
container_http_port=7555,
|
||||
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", "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