Skip to content

[Bug Fix] Rename devcontainer image to repo-owned ghcr package#413

Merged
djalmaaraujo merged 1 commit into
mainfrom
fix/devcontainer-image-name
Jun 10, 2026
Merged

[Bug Fix] Rename devcontainer image to repo-owned ghcr package#413
djalmaaraujo merged 1 commit into
mainfrom
fix/devcontainer-image-name

Conversation

@djalmaaraujo

@djalmaaraujo djalmaaraujo commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Problem

The Docker build (Devcontainer) job is red on every main run since the monorepo unification (#358) — it has never passed:

denied: permission_denied: write_package
##[error]Error: push failed with 1

The build itself succeeds; the push to ghcr.io/ruby-ui/web-devcontainer is denied. That package was created by the (now archived) ruby-ui/web repo, which retains exclusive write access — this repo's GITHUB_TOKEN can't push to it despite packages: write.

Fix

Rename the image to ghcr.io/ruby-ui/ruby_ui-devcontainer. The first push from this repo auto-creates the package linked here with write access.

Safe because the image is only a CI artifact/build cache — docs/.devcontainer/devcontainer.json builds from the local Dockerfile; nothing pulls the old name (only references are in ci.yml itself). First run will miss cacheFrom (slower build once), then cache normally.

Alternative considered: granting this repo write access on the old package via org package settings — requires org admin UI action and keeps a stale name (web-) from the pre-monorepo repo.

Test steps

  • Job is main-only (if: github.ref == 'refs/heads/main'), so it skips on this PR.
  • After merge, the next main run's Docker build (Devcontainer) job should go green and ghcr.io/ruby-ui/ruby_ui-devcontainer:latest should appear in org packages.

Summary by cubic

Fixes the failing Devcontainer build on main by renaming the GHCR image to a repo-owned package. Pushes now go to ghcr.io/ruby-ui/ruby_ui-devcontainer, so the workflow can create and push the image.

  • Bug Fixes
    • Updated imageName and cacheFrom in .github/workflows/ci.yml to ghcr.io/ruby-ui/ruby_ui-devcontainer.
    • Only affects the CI build cache; first run may be slower due to a cold cache.

Written for commit 980ad6b. Summary will update on new commits.

Review in cubic

The docker-build job has failed on every main run since the monorepo
unification (#358) with `denied: permission_denied: write_package` —
the ghcr.io/ruby-ui/web-devcontainer package belongs to the archived
ruby-ui/web repo, so this repo's GITHUB_TOKEN cannot push to it.

Renaming to ghcr.io/ruby-ui/ruby_ui-devcontainer lets the first push
create a fresh package linked to this repo with write access. The image
is only used as a CI build cache (devcontainer.json builds from the
local Dockerfile), so nothing consumes the old name.
@djalmaaraujo djalmaaraujo requested a review from cirdes as a code owner June 10, 2026 12:30

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Re-trigger cubic

@djalmaaraujo djalmaaraujo merged commit 5d5cad5 into main Jun 10, 2026
8 checks passed
@djalmaaraujo djalmaaraujo deleted the fix/devcontainer-image-name branch June 10, 2026 12:32
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