-
Notifications
You must be signed in to change notification settings - Fork 37
86 lines (79 loc) · 2.28 KB
/
Copy pathdocs.yml
File metadata and controls
86 lines (79 loc) · 2.28 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
75
76
77
78
79
80
81
82
83
84
85
86
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
- name: RBE auth check
id: rbe
if: github.event_name == 'pull_request'
uses: envoyproxy/toolshed/actions/github/container/auth@f3c0acc8c3799305101f5669042b388edfb070c7
with:
container: hello-world
- name: Configure repo Bazel settings (base)
working-directory: envoy
run: |
cat > repo.bazelrc <<'EOF'
common --config=remote-ci
EOF
cat repo.bazelrc
- name: Configure repo Bazel settings (RBE/BES)
if: >-
github.event_name != 'pull_request'
|| steps.rbe.outputs.authorized == 'true'
working-directory: envoy
run: |
cat >> repo.bazelrc <<'EOF'
common --config=rbe
common --config=bes
EOF
cat repo.bazelrc
- 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@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: docs
path: envoy/generated/docs
retention-days: 30