Skip to content

chore: sync staging with main (export IMAGE_TAG fix) - #7

Merged
soy-chrislo merged 1 commit into
stagingfrom
main
Jul 31, 2026
Merged

chore: sync staging with main (export IMAGE_TAG fix)#7
soy-chrislo merged 1 commit into
stagingfrom
main

Conversation

@soy-chrislo

Copy link
Copy Markdown
Owner

Fast-forward sync: brings the export-IMAGE_TAG fix (#6) into staging before the next dispatch.

…r pass (#6)

docker compose config --images runs as a separate child process, and a
compose file's \${IMAGE_TAG:-...} interpolation only sees variables that
are actually in that process's environment. IMAGE_TAG was a plain shell
assignment, not exported, so every docker compose invocation in the
remote script would silently fall back to the compose file's default
(<env>-latest) instead of the immutable per-commit tag -- meaning the
guard that verifies the pin would never match, and had it ever been
bypassed, an actual deploy would pull/run the wrong, mutable image
instead of the pinned commit.

Verified empirically: a minimal compose file with \${IMAGE_TAG:-x}
resolves to the default when IMAGE_TAG is a plain assignment in the
calling shell, and resolves correctly once exported. Caught by a
security-reviewer pass requested before editing the live VPS compose
file, ahead of any real cutover attempt.

Co-authored-by: Christian Rubio <christianrubioortiz@gmail.com>
@soy-chrislo
soy-chrislo merged commit b30b9af into staging Jul 31, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant