fix: recover deployed image from registry on local miss
Adds an app-aware `fn-verify-app-image` helper that pulls the deployed image from the configured registry when it is missing locally, gated on push-on-release being enabled, honoring per-app `registry:login` credentials. Every in-tree `verify_image` caller migrates to the wrapper and the bare helper is marked deprecated. `config:set` now forwards the deployed image tag to `release-and-deploy` so the release path no longer pins recovery on the unrecoverable `:latest` tag.
This commit is contained in:
@@ -65,7 +65,7 @@ func main() {
|
||||
chown := args.String("chown", "herokuish", "--chown: chown option (herokuish, heroku, paketo, root, false)")
|
||||
args.Parse(os.Args[2:])
|
||||
directory := args.Arg(0)
|
||||
common.LogWarn("storage:ensure-directory is deprecated; use storage:create instead.")
|
||||
common.LogWarn("Deprecated: please use 'storage:create' instead of 'storage:ensure-directory'")
|
||||
err = storage.CommandEnsureDirectory(directory, *chown)
|
||||
case "info":
|
||||
args := flag.NewFlagSet("storage:info", flag.ExitOnError)
|
||||
|
||||
@@ -180,7 +180,7 @@ func detectDistro() string {
|
||||
// should use storage.ListAppMountEntries directly. A deprecation warning
|
||||
// is emitted on every invocation.
|
||||
func TriggerStorageList(appName string, phase string, format string) error {
|
||||
common.LogWarn("the storage-list plugn trigger is deprecated; use the storage-app-mounts trigger or the storage Go package directly")
|
||||
common.LogWarn("Deprecated: please use the 'storage-app-mounts' plugn trigger or the storage Go package directly instead of 'storage-list'")
|
||||
|
||||
rows, err := ListAppMountEntries(appName, phase)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user