-
Notifications
You must be signed in to change notification settings - Fork 38
71 lines (67 loc) · 2.09 KB
/
Copy path_verify_build.yml
File metadata and controls
71 lines (67 loc) · 2.09 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
name: Verify/Wasm
permissions:
contents: read
on:
workflow_call:
inputs:
example:
type: string
required: true
jobs:
build:
permissions:
contents: read
packages: read
runs-on: ubuntu-24.04
name: Build (${{ inputs.example }})
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
path: examples
- run: |
docker pull envoyproxy/envoy:dev
DEV_CONTAINER_ID=$(docker inspect --format='{{.Id}}' envoyproxy/envoy:dev)
echo "DEV_CONTAINER_ID=${DEV_CONTAINER_ID}" >> $GITHUB_ENV
printf '%s\n' 'common --config=ci' > repo.bazelrc
working-directory: examples/${{ inputs.example }}
- name: Inject bzlmod envoy pin into MODULE.bazel
run: |
cat >> MODULE.bazel <<'EOF'
git_override(
module_name = "envoy",
remote = "https://github.com/envoyproxy/envoy",
commit = "6609c01e330fb84049d54a9dbffae8609b1ec9f7",
)
git_override(
module_name = "envoy_api",
remote = "https://github.com/envoyproxy/envoy",
commit = "6609c01e330fb84049d54a9dbffae8609b1ec9f7",
strip_prefix = "api",
)
EOF
working-directory: examples/${{ inputs.example }}
- name: RBE auth check
id: rbe
if: github.event_name == 'pull_request'
uses: envoyproxy/toolshed/actions/github/container/auth@00661cc7647f9d375041292d0218c75633f0bb03
with:
container: hello-world
- name: Configure repo Bazel settings (RBE/BES)
if: >-
github.event_name != 'pull_request'
|| steps.rbe.outputs.authorized == 'true'
working-directory: examples/${{ inputs.example }}
run: |
cat >> repo.bazelrc <<'EOF'
common --config=rbe
common --config=bes
EOF
cat repo.bazelrc
- run: |
./verify.sh
working-directory: examples/${{ inputs.example }}
env:
DOCKER_BUILDKIT: 1
COMPOSE_BAKE: true
BUILDKIT_PROGRESS: quiet
GITHUB_TOKEN: ${{ github.token }}