mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-28 03:53:33 +00:00
chore(pre-deploy): warn about depends_on: service_completed_successfully to use pre-deploy hook instead
This commit is contained in:
@@ -239,6 +239,25 @@ networks:
|
||||
warnCount: 1,
|
||||
warnContains: []string{"networks"},
|
||||
},
|
||||
{
|
||||
name: "unsupported depends_on service_completed_successfully",
|
||||
composeYAML: `services:
|
||||
migrate:
|
||||
image: alpine
|
||||
command: ["true"]
|
||||
app:
|
||||
image: nginx
|
||||
depends_on:
|
||||
migrate:
|
||||
condition: service_completed_successfully
|
||||
`,
|
||||
warnCount: 1,
|
||||
warnContains: []string{
|
||||
"service_completed_successfully",
|
||||
"pre-deploy hook",
|
||||
"https://uncloud.run/docs/guides/deployments/pre-deploy-hooks",
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "multiple unsupported features",
|
||||
composeYAML: `services:
|
||||
|
||||
Reference in New Issue
Block a user