Skip to content

Add sock and skb matchArgs selectors #183

Add sock and skb matchArgs selectors

Add sock and skb matchArgs selectors #183

name: Build and deploy docs
on:
push:
branches:
- main
paths:
- 'docs/**'
- '.github/workflows/build-deploy-docs.yaml'
pull_request:
paths:
- 'docs/**'
- '.github/workflows/build-deploy-docs.yaml'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
with:
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Setup Hugo
uses: peaceiris/actions-hugo@16361eb4acea8698b220b76c0d4e84e1fd22c61d
with:
hugo-version: '0.111.2'
extended: true
- name: Setup Node
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c
with:
node-version: '18'
cache: 'npm'
# The action defaults to search for the dependency file (package-lock.json,
# npm-shrinkwrap.json or yarn.lock) in the repository root, and uses its
# hash as a part of the cache key.
# https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#caching-packages-data
cache-dependency-path: '**/package-lock.json'
- name: Install Node dependencies
working-directory: docs
run: npm ci
- name: Build the Hugo website
working-directory: docs
run: hugo --minify --baseURL "https://tetragon.cilium.io/"
- name: Upload artifact
if: github.event_name == 'workflow_dispatch' || github.event_name == 'push'
uses: actions/upload-pages-artifact@64bcae551a7b18bcb9a09042ddf1960979799187
with:
path: docs/public
deploy:
if: github.event_name == 'workflow_dispatch' || github.event_name == 'push'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
# Allow one concurrent deployment
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
runs-on: ubuntu-latest
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@0243b6c10d06cb8e95ed8ee471231877621202c0