fix: stop forwarding deployed tag from config:set restart
Reverts the earlier triggerRestart change. Forwarding the numeric tag forces release_and_deploy to look up `dokku/<app>:N` (the bare local name), which was never tagged when image-repo overrides the default. `fn-verify-app-image` then retag-after-pulls and the underlying image ID ends up with two tags, which prevents scheduler-docker-local's image retire path from removing the old numeric tag (it uses unforced `docker image remove`).
This commit is contained in:
@@ -144,12 +144,10 @@ func triggerRestart(appName string) {
|
||||
return
|
||||
}
|
||||
|
||||
imageTag, _ := common.GetRunningImageTag(appName, "")
|
||||
|
||||
common.LogInfo1(fmt.Sprintf("Restarting app %s", appName))
|
||||
_, err := common.CallPlugnTrigger(common.PlugnTriggerInput{
|
||||
Trigger: "release-and-deploy",
|
||||
Args: []string{appName, imageTag, "config-redeploy"},
|
||||
Args: []string{appName, "", "config-redeploy"},
|
||||
StreamStdio: true,
|
||||
})
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user