Skip to content

Add netlink patch

Add netlink patch #11

name: Documentation Updates
# Any change in triggers needs to be reflected in the concurrency group.
on:
pull_request: {}
push:
branches:
- v1.16
- ft/v1.16/**
merge_group:
types: [checks_requested]
permissions: read-all
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.event.after || github.event.merge_group && github.run_id }}
cancel-in-progress: ${{ !github.event.merge_group }}
jobs:
check_changes:
name: Deduce required tests from code changes
runs-on: ubuntu-24.04
outputs:
docs-tree: ${{ steps.docs-tree.outputs.src }}
steps:
- name: Checkout code
if: ${{ !github.event.pull_request }}
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
fetch-depth: 0
- name: Check code changes
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
id: docs-tree
with:
# For `push` events, compare against the `ref` base branch
# For `pull_request` events, this is ignored and will compare against the pull request base branch
base: ${{ github.ref }}
filters: |
src:
- .github/workflows/documentation.yaml
- 'Documentation/**'
- 'bugtool/cmd/**'
- 'cilium/cmd/**'
- 'cilium-health/cmd/**'
- 'daemon/cmd/**'
- 'hubble-relay/cmd/**'
- 'install/kubernetes/**'
- 'operator/cmd/**'
- README.rst
# Runs only if code under Documentation or */cmd/ is changed as the docs
# should be unaffected otherwise.
build-html:
needs: check_changes
if: ${{ needs.check_changes.outputs.docs-tree == 'true' }}
name: Validate & Build HTML
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
# Needed to detect missing redirects
fetch-depth: 0
- name: Build HTML
uses: docker://quay.io/cilium/docs-builder:d09a4f57a38cb603c45944f1b2a9e68333654b71@sha256:1c02ee80fd52ea02f6e5aa52ca063de86b1c69fb78dce285b320c2fa077f505e
with:
entrypoint: ./Documentation/check-build.sh
args: html
check-generated-documentation:
name: Check generated documentation
if: ${{ github.event_name != 'merge_group' }}
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
# Needed to detect missing redirects
- name: Install Go
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
with:
# renovate: datasource=golang-version depName=go
go-version: 1.22.9
# Building Cilium as precondition to generate documentation artifacts.
- name: Build Cilium
run: |
make -C Documentation cilium-build
- name: Check generated documentation
run: |
SKIP_BUILD=true make -C Documentation check