Skip to content

Stop tagging the web image :latest - #423

Merged
JonJagger merged 1 commit into
mainfrom
drop-the-web-latest-tag
Aug 28, 2026
Merged

Stop tagging the web image :latest#423
JonJagger merged 1 commit into
mainfrom
drop-the-web-latest-tag

Conversation

@JonJagger

Copy link
Copy Markdown
Member

Nothing reads it. CYBER_DOJO_WEB_TAG is the short sha, set by
bin/echo_env_vars.sh, and docker-compose.yml names the image
${CYBER_DOJO_WEB_IMAGE}:${CYBER_DOJO_WEB_TAG}. No sibling repo refers to
cyberdojo/web:latest either, so the comment in remove_old_images.sh
saying local tooling refers to it described nothing.

Keeping it had a cost. remove_all_but_current exempted :latest, so the
build it last pointed at survived every later build's cleanup, and the
tag moving to each new build left the previous image behind untagged.
Removing the exemption lets those go, and this build stays protected by
its own sha tag, which is what names it everywhere.

cyberdojo/web: stays: sibling repos name the web image with the
dockerhub name their env-vars carry rather than the ECR one.

Also fixes the mismatch message in assert_web_image_has_sha_env_var,
which named :latest, a tag that no longer exists.

This is the change made in runner as drop-the-runner-latest-tag, applied
to web, which had two latest tags rather than one.

Co-Authored-By: Claude Opus 5 (1M context) noreply@anthropic.com

  Nothing reads it. CYBER_DOJO_WEB_TAG is the short sha, set by
  bin/echo_env_vars.sh, and docker-compose.yml names the image
  ${CYBER_DOJO_WEB_IMAGE}:${CYBER_DOJO_WEB_TAG}. No sibling repo refers to
  cyberdojo/web:latest either, so the comment in remove_old_images.sh
  saying local tooling refers to it described nothing.

  Keeping it had a cost. remove_all_but_current exempted :latest, so the
  build it last pointed at survived every later build's cleanup, and the
  tag moving to each new build left the previous image behind untagged.
  Removing the exemption lets those go, and this build stays protected by
  its own sha tag, which is what names it everywhere.

  cyberdojo/web:<sha> stays: sibling repos name the web image with the
  dockerhub name their env-vars carry rather than the ECR one.

  Also fixes the mismatch message in assert_web_image_has_sha_env_var,
  which named <image>:latest, a tag that no longer exists.

  This is the change made in runner as drop-the-runner-latest-tag, applied
  to web, which had two latest tags rather than one.

  Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@JonJagger
JonJagger merged commit 9a41346 into main Aug 28, 2026
10 checks passed
@JonJagger
JonJagger deleted the drop-the-web-latest-tag branch August 28, 2026 07:30
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