Skip to content

ci: add GitLab container build config for dev/0.3.0 (public containers)#1015

Open
wprazuch wants to merge 2 commits into
dev/0.3.0from
wprazuch/add-gitlab-trigger-ci
Open

ci: add GitLab container build config for dev/0.3.0 (public containers)#1015
wprazuch wants to merge 2 commits into
dev/0.3.0from
wprazuch/add-gitlab-trigger-ci

Conversation

@wprazuch
Copy link
Copy Markdown
Contributor

@wprazuch wprazuch commented May 14, 2026

What

Adds .gitlab-ci.yml to the public dev/0.3.0 branch so GitLab builds public dev containers whenever the pull-mirror syncs from GitHub.

Why the previous approach was wrong

The original PR used trigger: branch: nv-internal-main. That would run the pipeline in nv-internal-main context (CI_COMMIT_BRANCH = nv-internal-main) and build internal-{ts}-{sha} containers from internal code — wrong.

Correct approach

Container build jobs run directly on dev/0.3.0:

  • CI_COMMIT_BRANCH = "dev/0.3.0"
  • Containers tagged dev-{ts}-{sha}
  • Built from public dev/0.3.0 code (no _internal/ additions)

Two container builds, two branches

Branch CI config Container tag Code
dev/0.3.0 This file (public) dev-{ts}-{sha} Public only
nv-internal-main Full CI on that branch internal-{ts}-{sha} Public + internal

Nothing sensitive in this file

All credentials (CI_REGISTRY_USER, CI_REGISTRY_PASSWORD, CI_REGISTRY) come from GitLab CI/CD project variables at runtime — not hardcoded here. Runner tags (nv-core-evals-x86) are just names.

Note: harbor variant excluded (internal infra). Public variants: base, lm-eval, skills, gym, full.

For instant container builds

After merging: enable "Trigger pipelines for mirror updates" in GitLab → Settings → Repository → Mirroring repositories. Without it, containers build on the next 30-min mirror cadence.

When GitLab's pull-mirror updates dev/0.3.0 from GitHub, this triggers
the full CI pipeline (containers, lint, test) on nv-internal-main.

The actual CI config lives on nv-internal-main (internal, not mirrored).
This file is the public bridge that makes internal container builds fire
automatically on every public push.

Signed-off-by: Wojciech Prazuch <wprazuch@nvidia.com>
@copy-pr-bot
Copy link
Copy Markdown

copy-pr-bot Bot commented May 14, 2026

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 14, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Enterprise

Run ID: c0113eeb-b583-4061-8dce-dc607de2c84e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch wprazuch/add-gitlab-trigger-ci

Comment @coderabbitai help to get the list of available commands and usage tips.

Previous version used trigger:branch:nv-internal-main which was wrong —
it ran the pipeline in nv-internal-main context, building internal-tagged
containers from nv-internal-main code.

Correct approach: the container build jobs run directly on dev/0.3.0,
so CI_COMMIT_BRANCH = 'dev/0.3.0' and containers are tagged dev-{ts}-{sha}
from the public dev/0.3.0 code. Nothing in this file is sensitive —
all credentials come from GitLab CI/CD project variables at runtime.

Note: harbor excluded from public builds (internal infra). The full
variant set (lm-eval, skills, gym, full) remains.

Signed-off-by: Wojciech Prazuch <wprazuch@nvidia.com>
@wprazuch wprazuch changed the title ci: add minimal GitLab CI trigger (dev/0.3.0 → nv-internal-main container builds) ci: add GitLab container build config for dev/0.3.0 (public containers) May 14, 2026
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