-
Notifications
You must be signed in to change notification settings - Fork 36
74 lines (66 loc) · 1.84 KB
/
docs.yml
File metadata and controls
74 lines (66 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: Docs
permissions:
contents: read
on:
pull_request:
push:
branches:
- main
concurrency:
group: >-
${{ github.event.inputs.head_ref || github.run_id }}
jobs:
docs:
permissions:
contents: read
packages: read
runs-on: ubuntu-24.04
steps:
- uses: envoyproxy/toolshed/actions/bind-mounts@598eacce15ab5f208102a2fd5669292868002701 # v0.4.0
with:
mounts: |
- src: /mnt/docker
target: /var/lib/docker
rm: true
command-pre: sudo systemctl stop docker
command-post: sudo systemctl start docker
- src: /mnt/workspace
target: GITHUB_WORKSPACE
chown: "runner:runner"
- src: /mnt/runner-cache
target: /home/runner/.cache
chown: "runner:runner"
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
repository: envoyproxy/envoy
path: envoy
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
path: examples
- run: |
cat >> WORKSPACE <<'EOF'
load("@envoy-examples//bazel:env.bzl", "envoy_examples_env")
envoy_examples_env()
EOF
cat > repo.bazelrc <<'EOF'
common --config=ci
common --config=rbe
common --config=bes
EOF
working-directory: envoy
- run: |
export UID
export GID=$(id -g)
docker compose run docs
working-directory: examples
env:
BUILDKIT_PROGRESS: quiet
COMPOSE_BAKE: true
DOCKER_BUILDKIT: 1
GITHUB_TOKEN: ${{ github.token }}
- name: Docs upload
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
with:
name: docs
path: envoy/generated/docs
retention-days: 30