chore: make the postdeploy task name more clear
This commit is contained in:
2 files changed
+2
-6
No files matched your search
@@ -133,11 +133,7 @@ func cleanupDeploymentContainer(containerID string, phase string) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func executeScript(appName string, image string, imageTag string, phase string) error {
|
func executeScript(appName string, image string, imageTag string, phase string) error {
|
||||||
phaseName := phase
|
common.LogInfo1(fmt.Sprintf("Checking for %s task", phase))
|
||||||
if phase == "heroku.postdeploy" {
|
|
||||||
phaseName = "first deploy postdeploy"
|
|
||||||
}
|
|
||||||
common.LogInfo1(fmt.Sprintf("Checking for %s task", phaseName))
|
|
||||||
command := ""
|
command := ""
|
||||||
phaseSource := ""
|
phaseSource := ""
|
||||||
if phase == "release" {
|
if phase == "release" {
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ teardown() {
|
|||||||
run deploy_app python dokku@$DOKKU_DOMAIN:$TEST_APP add_failing_postdeploy
|
run deploy_app python dokku@$DOKKU_DOMAIN:$TEST_APP add_failing_postdeploy
|
||||||
echo "output: $output"
|
echo "output: $output"
|
||||||
echo "status: $status"
|
echo "status: $status"
|
||||||
assert_output_contains "Execution of first deploy postdeploy task failed"
|
assert_output_contains "Execution of heroku.postdeploy task failed"
|
||||||
assert_failure
|
assert_failure
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user