nginx/kubernetes-ingress/nic-ci-pipelines
Claude Code and agent skill by nginx/kubernetes-ingress
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
CI/CD pipeline structure, GitHub Actions workflows, reusable workflow patterns, and matrix builds for NIC. Use when working on CI workflows, debugging build failures, adding new workflow steps, modifying build matrices, or understanding the release pipeline.
Install
npx vskill@latest install nginx/kubernetes-ingress/nic-ci-pipelinesSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as nginx/kubernetes-ingress/nic-ci-pipelines.
NIC CI/CD Pipelines
Repository Split -- read this first
Workflow files are shared between two repositories, and every job is gated on `github.repository`. The same file behaves differently depending on which repo runs it.
| Repository | Owns | Gate string | |
|---|---|---|---|
nginx/kubernetes-ingress-internal | Release image and binary builds. Builds all OSS/Plus/NAP variants, stages them plus the Helm chart in the internal registry, signs binaries, uploads tarballs to Azure | github.repository == 'nginx/kubernetes-ingress-internal' | |
nginx/kubernetes-ingress (public) | Publishing only. Pulls prepped images from the internal staging registry and pushes them to every public registry, publishes the Helm chart, certifies UBI images, opens the operator PR, tags and publishes the GitHub release | github.repository == 'nginx/kubernetes-ingress' |
Consequences:
release-prep.yml/release-prep-lts.ymlare internal-repo only. They are the only workflows that build release images. Dispatching them on the public repo is a no-op -- every job skips.release-publish.yml/release-publish-lts.ymlare public-repo only. They never rundocker build;oss-release.ymlandplus-release.ymlcopy image manifests withskopeofromsource_registry(defaultdocker-mgmt-test.nginx.com) to the public targets.- The public repo still builds images for PR/CI testing (
ci.yml->build-artifacts.yml) and again on merge (image-promotion.ymlcallsbuild-artifacts.ymlwithforce: truebefore taggingedge/stable). Both push to the GCR dev registry -- they are test artifacts, not release artifacts. - A publish failure is retryable on its own -- nothing needs rebuilding because the images already exist in the staging registry.
- PR CI runs in both repos from the same files.
ci.ymlandlint-format.ymltrigger on PRs intoembargo/security-fixes*andembargo/security-fixes-work/**as well, and their jobs use the dual-repo gate. There are nomirror-*.ymlcopies: the embargo branches carry no CI-specific commits on top ofmain,release-5.8andrelease-2026-lts. The internal repo has nopushtrigger, so syncing a base branch into it starts no CI run.
Dual-repo Variables
Workflows read repository variables instead of branching on github.repository, so one file runs correctly in both repos. Both repos define them; the in-file fallbacks are the public values.
| Variable | Public | Internal | Used for | |
|---|---|---|---|---|
vars.RUNNER | ubuntu-26.04 | aw-ubuntu-24.04-amd64 | runs-on of every CI job | |
vars.RELEASE_RUNNER | ubuntu-24.04-amd64 | aw-ubuntu-24.04-amd64 | runs-on of release-adjacent jobs (pull-nap-images.yml) | |
vars.TEST_RUNNER_REGISTRY | ghcr.io/nginx/kubernetes-ingress | GCR dev registry | test-runner image registry (build-test-image.yml, resolve-test-runner) | |
vars.IS_PUBLIC | true | false | SARIF upload target in security-scan (GitHub code scanning vs Azure blob). Compared against an explicit value, so unset uploads nowhere | |
vars.MIRROR_SYNC_BRANCHES, vars.MIRROR_SYNC_REQUEST_ISSUE_NUMBER | -- | set | cve-publish.yml branch mappings and request issue |
Composite Actions (.github/actions/)
| Action | Purpose | |
|---|---|---|
vault-gcr-login | Azure Key Vault -> Google OIDC -> docker login gcr.io | |
nginx-pkg-secrets | Writes nginx-repo.crt/.key from vault; optionally exports the Plus JWT and Docker Hub credentials | |
github-app-token | Mints a GitHub App installation token from a vault-stored app key | |
azure-blob | Azure OIDC login + upload a directory to blob storage | |
security-scan | Docker Scout scan to SARIF, uploaded per vars.IS_PUBLIC | |
scout-cache | Seeds the docker/scout-action binary once per run as an artifact (mode: seed); security-scan restores it. Avoids the 60/hour unauthenticated GitHub API limit when a matrix fans out into parallel scans. Artifacts, not the Actions cache, so it does not evict build layers and is not visible to other runs | |
resolve-test-runner | Resolves the test-runner image and runner label from vars.TEST_RUNNER_REGISTRY/vars.RUNNER | |
build-push-retry, smoke-tests, certify-openshift-image | Build with retry, smoke tests, OpenShift certification |
The file header of each action documents its contract (inputs, required permissions, sparse-checkout paths). Read it before calling the action.
Workflow Architecture
The CI system uses GitHub Actions with extensive reusable workflow composition.
Two-Stage Release Architecture
Release pipelines are split into two independently dispatchable stages that run in different repositories:
- Stage 1 (Prep / Creation) (
release-prep.yml/release-prep-lts.yml) -- runs innginx/kubernetes-ingress-internal:
- Builds binaries and container images (the only place release images are built)
- Stages container images and Helm charts in the internal test registry (
docker-mgmt-test.nginx.com) - Generates Syft SBOMs, signs artifacts with Cosign, and uploads release tarballs to Azure blob storage
- Does not create git tags, publish public images, or publish the GitHub release
- Stage 2 (Publish) (
release-publish.yml/release-publish-lts.yml) -- runs innginx/kubernetes-ingress(public):
- Copies prepped images from
docker-mgmt-test.nginx.comto public registries (GCR, Docker Hub, ECR Public, Quay, GHCR, NGINX Registry) - Publishes public Helm charts and certifies UBI images on OpenShift
- Dispatches
sync-chart.ymlinnginx/nginx-ingress-helm-operatorto raise the operator PR (requires a non-emptyoperator_versioninput, otherwise the job skips) - Verifies all prerequisites via
release-gate - Creates and pushes the release git tag (
vX.Y.Zor<lts_version>) - Downloads signed binaries from Azure blob storage and attaches them to the GitHub release draft
- Closes the release milestone and publishes the GitHub release
release-publish.ymlonly: dispatchesnkp-catalog-pr.ymlto raise the NKP Partner Catalog PR (skipped ondry_runorskip_step: nkp-catalog)
Because the stages are decoupled and live in separate repos, a transient failure in publishing or external registry sync can be retried directly via release-publish.yml without rebuilding any images or binaries.
Key Workflows
Core CI & Testing
| Workflow | Trigger | Purpose | |
|---|---|---|---|
ci.yml | PR to main/release-*/embargo/security-fixes*, merge_group, workflow_dispatch | Main CI orchestrator: checks + build + test. Images built here are test images pushed to the GCR dev registry. Final CI Results is the single required check in both repos | |
lint-format.yml | PR to main/embargo/security-fixes*, merge_group | Format & lint checks (gofumpt, goimports, golangci-lint, actionlint, markdownlint, yamllint, workflow gating validation) | |
regression.yml | Daily cron (03:00 UTC), manual dispatch | Multi-K8s-version regression matrix tests | |
single-image-regression.yml | Manual dispatch | Runs Python e2e tests on a single image variant and K8s version | |
build-base-images.yml | Weekday cron (04:30 UTC), manual (optional push_images) | Rebuilds all base images (alpine, debian, ubi) | |
build-ubi-dependency.yml | Push to main touching build/dependencies/Dockerfile.ubi10, manual | Builds the UBI dependency image published to ghcr.io/nginx/dependencies/nginx-ubi | |
image-promotion.yml | Push to main/release-*, workflow_call | Rebuilds images via build-artifacts.yml (force: true), tags edge/stable, runs security scans, publishes GHCR edge chart |
Release Workflows
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/nic-ci-pipelines/SKILL.md
Popularity
- Repository stars
- 5,081
- Repository forks
- 2,051
- 7-day trend score
- 43
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/nginx/kubernetes-ingress/nic-ci-pipelines)