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:
Jose Diaz-Gonzalez
2026-05-25 15:30:51 -04:00
parent 79921d75d6
commit 64a5b1517a
2 changed files with 1 additions and 22 deletions

View File

@@ -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 {