Test of first full stack deployment

This commit is contained in:
Cian Hughes
2024-01-12 18:07:20 +00:00
parent d183e43427
commit f8d575d5b0
3 changed files with 164 additions and 79 deletions

7
deploy
View File

@@ -81,11 +81,10 @@ 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("secrets", 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)
portainer_deploy_stack("volumes", stacks, endpoint_id)
portainer_deploy_stack("backend", stacks, endpoint_id)
portainer_deploy_stack("frontend", stacks, endpoint_id)
print("Stack deployed!")