Skip to content

CI + release workflows hard-coupled to the container image regardless of DEVKIT_MODE #991

Closed

Description

@c-vigo

Description

Every scaffolded CI and release job runs inside
container: ghcr.io/vig-os/devcontainer:<tag>, gated by a resolve-image job
that reads .vig-os. No workflow branches on DEVKIT_MODE. A direnv or
bare consumer still mandates the devcontainer image in CI and at release time —
contradicting the point of choosing a container-less mode.

This is the core of the epic and the largest surface.

Agreed design

  • Keep one release pipeline. release-core/publish/extension stay reusable
    workflow_call workflows; the choreography does not fork per mode.
  • Add a shared setup-devkit-toolchain composite action that branches on
    DEVKIT_MODE from .vig-os:
    • container → today's container: image path
    • direnv → install-nix-action + nix develop / flake devshell
    • bare → host-native setup-node / uv / etc.
  • Publish step keyed on artifact type, not mode (image / JS action / crate /
    flake) — a small per-repo hook.
  • Job-level container: can't be conditionally unset by expression: use
    if:-gated job wrappers, or a documented "container unless mode≠container"
    default.

Acceptance Criteria

Related Issues

Part of the mode-aware scaffold epic. Absorbs the container:/resolve-image
leaks noted in D1. Building blocks split out: #992 (spike: conditional
container:, Option A vs B), #993 (vig-utils host-side), #994
(setup-devkit-toolchain composite), #995 (actionlint). This issue covers the
conversion of ci.yml (collapsing the per-mode overlays, per the #992 spike
outcome) and the release/automation workflow set to the composite pattern.

Part of #988.

Activity

  1. added this to the Backlog milestone on Jul 13, 2026
  2. added
    refactor
    priority:high
    area:ci
    effort:large
    semver:minor
    on Jul 13, 2026
  3. c-vigo commented on Jul 13, 2026

    @c-vigo
    ContributorAuthor

    PART A merged via #1005: single mode-aware ci.yml (resolve-toolchain + conditional container + setup-devkit-toolchain), overlay dirs and init-workspace.sh overlay logic removed. Verified locally in the dev-shell: 146/146 + 89/89 bats green, actionlint fixtures green across all rendered modes. PART B (release/automation set) in progress.

  4. c-vigo commented on Jul 13, 2026

    @c-vigo
    ContributorAuthor

    Both parts merged into the epic branch: PART A #1005 (single mode-aware ci.yml, overlays removed) and PART B #1006 (release/automation set on resolve-toolchain threading + setup-devkit-toolchain; scaffold resolve-image retired). Choreography unchanged. Verified locally in the dev-shell: 288/288 scoped bats green incl. actionlint fixtures over every rendered mode; the only full-dir failures are the 9 pre-existing environment-dependent IN_CONTAINER githook tests (identical on the epic-branch baseline, green in CI).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:cieffort:largepriority:highrefactorsemver:minor

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions