Skip to content

CI: container image を :ci (slim) に切り替え (#46 の取りこぼし) - #48

Merged
thawk105 merged 1 commit into
masterfrom
ci-image-slim-tag
May 13, 2026
Merged

CI: container image を :ci (slim) に切り替え (#46 の取りこぼし)#48
thawk105 merged 1 commit into
masterfrom
ci-image-slim-tag

Conversation

@thawk105

Copy link
Copy Markdown
Owner

#46 で CI を devcontainer image の中で動かすようにしたが、merge 時点で container.image::latest:ci 切り替え commit が force-push のリベース中に落ちてマージされていなかった。master では今も :latest (= zsh / clang-format / sudo / openssh-client / curl 入りの fat image) を pull している。

機能的には :latest:ci (同じ multi-stage Dockerfile の dev stage と base stage) なので CI 自体は緑のままだが、毎回の image pull で dev ツール layer を引いていて目的の slim 化が達成されていない。

変更

     container:
-      image: ghcr.io/thawk105/ccbench-devcontainer:latest
+      image: ghcr.io/thawk105/ccbench-devcontainer:ci
       options: --user root

コメントも :latest 文脈から :ci 文脈に書き直し。

なぜローカル確認なしか

:ci tag は #45 でmasterマージ後に既に publish 済み (ghcr.io から anonymous pull で manifest HTTP 200 が返ることを確認済み)。違いは pull する layer set だけで、ビルド成功するかは GHA の container job が image を pull できるかの一点に集約される。なので CI 一発で検証可能。

Test plan

  • CI 緑 (= :ci tag が pull できることの実証)

#45 published the slim base-stage image as :ci, and #46 was supposed to
point build.yml at it — but the `:ci` switch commit dropped on the
force-push during rebase, so master kept pulling :latest (the human-
facing devcontainer image with zsh/clang-format/sudo/openssh-client/
curl baked in). CI still works because :latest contains a superset of
what the build needs; this PR just trims the per-run image pull to the
intended slim layers.
@thawk105
thawk105 merged commit 1ceb9cb into master May 13, 2026
2 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