Files
floci/.github/ci/service-image.sh
T
Andre Kurait a5b3fab110 fix(ci): derive Neptune prefetch images from configuration (#7834)
* fix(ci): derive Neptune prefetch images from configuration

Read the Neptune pin for Java compatibility and shared shard prefetch from application.yml. Preserve best-effort pulls, shard selection and Node retry behavior.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>

* fix(ci): share configured Neptune image lookup

Reuse one keyed lookup for Node, Java and shard prefetch. Read the Neo4j pin from configuration and correct the pre-pull overlap comment.

Signed-off-by: Andre Kurait <akurait@amazon.com>

* fix(ci): share service image read and prefetch

Use one service/key config reader across Neptune and CodeArtifact. Share configured-image pull/skip logic, preserve Node/Java failure policies and remove the unused test file.

Signed-off-by: Andre Kurait <akurait@amazon.com>

* chore(ci): remove superseded Neptune image reader

Remove the old helper left by the preceding rename publication. All consumers use the qualified shared service/key reader.

Signed-off-by: Andre Kurait <akurait@amazon.com>

---------

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
Signed-off-by: Andre Kurait <akurait@amazon.com>
2026-11-09 21:49:27 -04:00

14 lines
503 B
Bash

#!/usr/bin/env bash
# Read one service image key from the checked-out runtime configuration.
# An absent key prints nothing so callers retain their own failure policy.
set -eu
if [ "$#" -ne 2 ]; then
echo "Usage: service-image.sh <service> <key>" >&2
exit 2
fi
awk -v service="$1" -v key="$2" '
$0 == " " service ":" { in_service=1; next }
in_service && /^ [a-z]/ { exit }
in_service && $1 == key ":" { gsub(/"/, "", $2); print $2; exit }
' src/main/resources/application.yml