Second attempt at using secret in elabftw

This commit is contained in:
Cian Hughes
2024-01-12 18:19:23 +00:00
parent 1dcdf80987
commit 0b6be53d30
6 changed files with 855 additions and 4 deletions

6
deploy
View File

@@ -81,9 +81,9 @@ def deploy_stack(username: str, password: str, stack_name: Optional[str] = "stac
stacks = portainer.StacksApi(client)
# Then, deploy the substacks using the API
print("Deploying substacks via portainer API")
portainer_deploy_stack("networks", stacks, endpoint_id)
portainer_deploy_stack("volumes", stacks, endpoint_id)
portainer_deploy_stack("backend", stacks, endpoint_id)
# portainer_deploy_stack("networks", stacks, endpoint_id)
# portainer_deploy_stack("volumes", stacks, endpoint_id)
# portainer_deploy_stack("backend", stacks, endpoint_id)
portainer_deploy_stack("frontend", stacks, endpoint_id)
print("Stack deployed!")