mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
chore: make the postdeploy task name more clear
This commit is contained in:
@@ -133,11 +133,7 @@ func cleanupDeploymentContainer(containerID string, phase string) error {
|
||||
}
|
||||
|
||||
func executeScript(appName string, image string, imageTag string, phase string) error {
|
||||
phaseName := phase
|
||||
if phase == "heroku.postdeploy" {
|
||||
phaseName = "first deploy postdeploy"
|
||||
}
|
||||
common.LogInfo1(fmt.Sprintf("Checking for %s task", phaseName))
|
||||
common.LogInfo1(fmt.Sprintf("Checking for %s task", phase))
|
||||
command := ""
|
||||
phaseSource := ""
|
||||
if phase == "release" {
|
||||
|
||||
@@ -50,7 +50,7 @@ teardown() {
|
||||
run deploy_app python dokku@$DOKKU_DOMAIN:$TEST_APP add_failing_postdeploy
|
||||
echo "output: $output"
|
||||
echo "status: $status"
|
||||
assert_output_contains "Execution of first deploy postdeploy task failed"
|
||||
assert_output_contains "Execution of heroku.postdeploy task failed"
|
||||
assert_failure
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user