Migrate prod:deploy to standalone script
This commit is contained in:
Executable
+8
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#MISE description="Deploy on production and monitor deployment"
|
||||
#MISE confirm="Are you sure you want to deploy to production?"
|
||||
|
||||
set -e
|
||||
|
||||
hurl --test --progress-bar scripts/prod/deploy.hurl
|
||||
@@ -0,0 +1,23 @@
|
||||
# Trigger a deploy and capture the deployment ID
|
||||
|
||||
GET {{coolify_host}}/api/v1/deploy
|
||||
Authorization: Bearer {{coolify_token}}
|
||||
[Query]
|
||||
uuid: {{coolify_app_uuid}}
|
||||
HTTP 200
|
||||
[Captures]
|
||||
deployment_uuid: jsonpath "$.deployments[0].deployment_uuid"
|
||||
|
||||
# Watch the deployment until it's finished
|
||||
# It normally takes around 5 minutes if no layers are cached,
|
||||
# We make it longer to account for potential other issues
|
||||
|
||||
GET {{coolify_host}}/api/v1/deployments/{{deployment_uuid}}
|
||||
Authorization: Bearer {{coolify_token}}
|
||||
[Options]
|
||||
delay: 20s
|
||||
retry: 40
|
||||
retry-interval: 10s
|
||||
HTTP 200
|
||||
[Asserts]
|
||||
jsonpath "$.status" == "finished"
|
||||
Reference in New Issue
Block a user