nginx/kubernetes-ingress/nic-ci-pipelines

Claude Code and agent skill by nginx/kubernetes-ingress

Trust tier 3
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Source check pending

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-pipelines

Semi-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.

RepositoryOwnsGate string
nginx/kubernetes-ingress-internalRelease 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 Azuregithub.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 releasegithub.repository == 'nginx/kubernetes-ingress'

Consequences:

  • release-prep.yml / release-prep-lts.yml are 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.yml are public-repo only. They never run docker build; oss-release.yml and plus-release.yml copy image manifests with skopeo from source_registry (default docker-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.yml calls build-artifacts.yml with force: true before tagging edge/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.yml and lint-format.yml trigger on PRs into embargo/security-fixes* and embargo/security-fixes-work/** as well, and their jobs use the dual-repo gate. There are no mirror-*.yml copies: the embargo branches carry no CI-specific commits on top of main, release-5.8 and release-2026-lts. The internal repo has no push trigger, 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.

VariablePublicInternalUsed for
vars.RUNNERubuntu-26.04aw-ubuntu-24.04-amd64runs-on of every CI job
vars.RELEASE_RUNNERubuntu-24.04-amd64aw-ubuntu-24.04-amd64runs-on of release-adjacent jobs (pull-nap-images.yml)
vars.TEST_RUNNER_REGISTRYghcr.io/nginx/kubernetes-ingressGCR dev registrytest-runner image registry (build-test-image.yml, resolve-test-runner)
vars.IS_PUBLICtruefalseSARIF 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--setcve-publish.yml branch mappings and request issue
Composite Actions (.github/actions/)
ActionPurpose
vault-gcr-loginAzure Key Vault -> Google OIDC -> docker login gcr.io
nginx-pkg-secretsWrites nginx-repo.crt/.key from vault; optionally exports the Plus JWT and Docker Hub credentials
github-app-tokenMints a GitHub App installation token from a vault-stored app key
azure-blobAzure OIDC login + upload a directory to blob storage
security-scanDocker Scout scan to SARIF, uploaded per vars.IS_PUBLIC
scout-cacheSeeds 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-runnerResolves the test-runner image and runner label from vars.TEST_RUNNER_REGISTRY/vars.RUNNER
build-push-retry, smoke-tests, certify-openshift-imageBuild 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.

text
internal repo public repo
------------- -----------
release-prep.yml release-publish.yml
build-artifacts.yml oss-release.yml (skopeo copy)
push-prep-images --> docker-mgmt-test.nginx.com --> GCR / Docker Hub / ECR Public / Quay / GHCR / NGINX Registry
stage-helm-chart --> oci://docker-mgmt-test... --> publish-helm.yml (Helm repo + GHCR)
binaries (SBOM, Cosign) certify-openshift-images (Pyxis)
azure-upload --> Azure blob operator (dispatch nginx-ingress-helm-operator/sync-chart.yml)
release-gate -> tag -> release-assets -> github-release
nkp-catalog (dispatch nkp-catalog-pr.yml)

Workflow Architecture

The CI system uses GitHub Actions with extensive reusable workflow composition.

text
ci.yml (main CI orchestrator) [both repos]
-> checks (format, lint, codegen, CRDs, chart version)
-> verify-codegen (go mod tidy, make update-crds, make update-codegen, make telemetry-schema -- all must produce no diff)
-> unit-tests, staticcheck, govulncheck
-> build-artifacts.yml (reusable) <- CI/test images only, pushed to GCR dev registry
-> build-oss.yml (per-variant, matrix)
-> build-plus.yml (per-variant, matrix) <- also used for NAP variants
-> package-tests, helm-tests
-> setup-smoke.yml (reusable)
-> smoke / e2e tests
image-promotion.yml (post-merge) [public repo]
-> build-artifacts.yml (force: true) <- rebuilds test images before promoting
-> tags images edge/stable
-> Trivy + DockerScout security scans
-> publishes edge Helm charts to GHCR
-> updates GitHub Release draft notes
release-prep.yml (dispatchable Stage 1: Creation) [INTERNAL repo only]
-> build-artifacts.yml (reusable) <- the only release image build
-> push-prep-images -> stages images in docker-mgmt-test.nginx.com
-> stage-helm-chart -> stages Helm chart in oci://docker-mgmt-test.nginx.com/nginx-ic/helm
-> binaries -> generates SBOM (Syft), signs (Cosign), creates tarballs
-> azure-upload -> uploads signed tarballs to Azure blob storage
release-publish.yml (dispatchable Stage 2: Publish) [PUBLIC repo only -- no builds]
-> oss-release.yml (skopeo copy from source_registry: docker-mgmt-test.nginx.com)
-> plus-release.yml (skopeo copy from source_registry: docker-mgmt-test.nginx.com)
-> publish-helm.yml (publishes Helm chart to Helm repo & GHCR)
-> certify-openshift-images (certifies UBI images on OpenShift / Pyxis)
-> operator -> dispatches nginx-ingress-helm-operator/sync-chart.yml to raise the operator PR
-> release-gate -> verifies all artifact publications succeed
-> tag -> creates and pushes the vX.Y.Z git tag
-> release-assets -> downloads tarballs from Azure and uploads to GitHub release draft
-> github-release -> closes milestone and publishes the GitHub release draft
-> nkp-catalog -> dispatches nkp-catalog-pr.yml to raise the NKP Partner Catalog PR
Two-Stage Release Architecture

Release pipelines are split into two independently dispatchable stages that run in different repositories:

  1. Stage 1 (Prep / Creation) (release-prep.yml / release-prep-lts.yml) -- runs in nginx/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
  1. Stage 2 (Publish) (release-publish.yml / release-publish-lts.yml) -- runs in nginx/kubernetes-ingress (public):
  • Copies prepped images from docker-mgmt-test.nginx.com to public registries (GCR, Docker Hub, ECR Public, Quay, GHCR, NGINX Registry)
  • Publishes public Helm charts and certifies UBI images on OpenShift
  • Dispatches sync-chart.yml in nginx/nginx-ingress-helm-operator to raise the operator PR (requires a non-empty operator_version input, otherwise the job skips)
  • Verifies all prerequisites via release-gate
  • Creates and pushes the release git tag (vX.Y.Z or <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.yml only: dispatches nkp-catalog-pr.yml to raise the NKP Partner Catalog PR (skipped on dry_run or skip_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
WorkflowTriggerPurpose
ci.ymlPR to main/release-*/embargo/security-fixes*, merge_group, workflow_dispatchMain 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.ymlPR to main/embargo/security-fixes*, merge_groupFormat & lint checks (gofumpt, goimports, golangci-lint, actionlint, markdownlint, yamllint, workflow gating validation)
regression.ymlDaily cron (03:00 UTC), manual dispatchMulti-K8s-version regression matrix tests
single-image-regression.ymlManual dispatchRuns Python e2e tests on a single image variant and K8s version
build-base-images.ymlWeekday cron (04:30 UTC), manual (optional push_images)Rebuilds all base images (alpine, debian, ubi)
build-ubi-dependency.ymlPush to main touching build/dependencies/Dockerfile.ubi10, manualBuilds the UBI dependency image published to ghcr.io/nginx/dependencies/nginx-ubi
image-promotion.ymlPush to main/release-*, workflow_callRebuilds 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/nginx/kubernetes-ingress/nic-ci-pipelines/badge)](https://verified-skill.com/skills/nginx/kubernetes-ingress/nic-ci-pipelines)

Something wrong with this skill or its page? Tell us.