fix: pull registry-aware image name on local miss

When `image-repo` is overridden, the registry plugin pushes under that name and
the bare local `dokku/<app>:N` tag is never created. `fn-verify-app-image` now
queries the `deployed-app-image-repo` trigger and pulls `${REMOTE_REPO}${DEPLOYED_REPO}:${TAG}`,
retagging it as the local bare reference so subsequent inspects resolve. Also
aligns the `storage:ensure-directory` deprecation test assertion with the
standardized `Deprecated:` prefix.
This commit is contained in:
Jose Diaz-Gonzalez committed 2026-05-25 16:07:47 -04:00
1 parent 9517353df4
commit 79921d75d6
3 files changed
+14 -4

No files matched your search

+8
View File
@@ -105,8 +105,16 @@ setup_push_on_release_app() {
run /bin/bash -c "dokku config:set $TEST_APP RECOVERY_KEY=value"
echo "output: $output"
echo "status: $status"
assert_success
# triggerRestart forwards the deployed numeric tag (not "latest") to
# release-and-deploy, so the wrapper attempts recovery against ":1" rather
# than skipping recovery for ":latest" which is never pushed.
assert_output_contains "dokku/$TEST_APP:1 not found locally, pulling from registry"
# The wrapper retags the registry image back to the bare local name so
# subsequent get_app_image_name inspects resolve.
run /bin/bash -c "docker image inspect dokku/$TEST_APP:1"
echo "output: $output"
echo "status: $status"
assert_success
}