mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-13 06:06:38 +00:00
Add scripts/meta/resolve/image/local.sh as SPOT for the local Docker image tag (<repo-basename>/<distro>). Wire it into Makefile build targets (IMAGE_TAG), compose.py (_base_env sets INFINITO_IMAGE), and compose.yml (no default fallback). Fix build.sh to accept a pre-set IMAGE_TAG without requiring REPO_PREFIX. Add make build + build-no-cache to environment.sh test flow with correct section ordering. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
11 lines
389 B
Bash
Executable File
11 lines
389 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Resolve the local Docker image tag for the current repository and distro.
|
|
# Output format: <repo-basename>/<distro>
|
|
# This is the SPOT for the local image name used by both build and compose.
|
|
set -euo pipefail
|
|
|
|
repo_name="$(bash "$(dirname "${BASH_SOURCE[0]}")/../repository/name.sh")"
|
|
distro="${INFINITO_DISTRO:-debian}"
|
|
|
|
printf '%s/%s\n' "${repo_name}" "${distro}"
|