Skip to content

feat: add minimal node image to verify tag_ranges - #2

Merged
timo-reymann merged 1 commit into
mainfrom
feat/tag-ranges-demo
Sep 9, 2026
Merged

timo-reymann merged 1 commit into
mainfrom
feat/tag-ranges-demo

Conversation

@timo-reymann

Copy link
Copy Markdown
Member

Verification test project for ContainerHive/ContainerHive#251 (tag_ranges, closes ContainerHive#241).

What

Adds _base/images/node: a deliberately trivial image (FROM scratch, one ARG, one
LABEL — no install step) whose only purpose is to prove tag_ranges resolves a real
version from Docker Hub at discovery time and threads it through as a build arg:

tag_ranges:
  - tag_name: "{{.full}}"
    source:
      type: dockerhub
      image: library/node
    select:
      major: { last: 1 }
      minor: { last: 1 }
      patch: { last: 1 }
    versions:
      nodejs: "{{.full}}"

Verified locally: ch generate resolved the live Docker Hub tag list to a single
concrete tag and NODEJS_VERSION came out the other end of buildconfig_resolver
unchanged.

Both CI pipelines were regenerated against ghcr.io/containerhive/containerhive:cefac90
— the snapshot image published from ContainerHive#251's branch, which is where
tag_ranges support actually lives — so this PR's own CI run doubles as the end-to-end
verification.

🤖 Generated with Claude Code

Adds _base/images/node, a deliberately trivial image (FROM scratch,
one ARG, one LABEL - no install step) whose only purpose is to prove
ContainerHive/ContainerHive#241's tag_ranges resolves a real version
from Docker Hub at discovery time and threads it through as the
NODEJS_VERSION build arg:

  tag_ranges:
    - tag_name: "{{.full}}"
      source:
        type: dockerhub
        image: library/node
      select:
        major: { last: 1 }
        minor: { last: 1 }
        patch: { last: 1 }
      versions:
        nodejs: "{{.full}}"

Verified locally against a tag_ranges-capable ch build: `ch generate`
resolved the live Docker Hub tag list to a single concrete tag (e.g.
26.8.1) and NODEJS_VERSION=26.8.1 came out the other end of
buildconfig_resolver unchanged.

Regenerated both CI pipelines to add the resulting node build/test/
manifest jobs and the version-cache steps on generate+lint (also
picking up unrelated pending regen output: the ci_cancel_outdated
concurrency block and action version bumps that were already sitting
uncommitted before this branch).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
TestsPassed ❌️SkippedFailed
Container Structure Tests - node0 ran0 passed0 skipped0 failed
TestResult
No test annotations available

@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
TestsPassed ✅SkippedFailed
Container Structure Tests - base-deployment2 ran2 passed0 skipped0 failed
TestResult
Container Structure Tests - base-deployment
File Existence Test: ca-certificates-exist✅ passed
File Existence Test: ca-certificates-exist✅ passed

@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
TestsPassed ✅SkippedFailed
Container Structure Tests - base-ci6 ran6 passed0 skipped0 failed
TestResult
Container Structure Tests - base-ci
Command Test: curl-installed✅ passed
Command Test: git-installed✅ passed
File Existence Test: ca-certificates-exist✅ passed
Command Test: curl-installed✅ passed
Command Test: git-installed✅ passed
File Existence Test: ca-certificates-exist✅ passed

@timo-reymann
timo-reymann merged commit b93dbd1 into main Sep 9, 2026
19 checks passed
@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
TestsPassed ❌️SkippedFailed
Container Structure Tests - dotnet-runtime0 ran0 passed0 skipped0 failed
TestResult
No test annotations available

@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
TestsPassed ✅SkippedFailed
Container Structure Tests - go-ci4 ran4 passed0 skipped0 failed
TestResult
Container Structure Tests - go-ci
Command Test: zig-installed✅ passed
Command Test: zig-installed✅ passed
Command Test: zig-installed✅ passed
Command Test: zig-installed✅ 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