Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rbe: Testing #1251

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/nighthawk-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:

jobs:
check:
permissions:
contents: read
packages: read
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

packages: read permission required for remote access

runs-on: envoy-x64-medium
strategy:
fail-fast: false
Expand All @@ -17,4 +20,9 @@ jobs:
- uses: actions/checkout@v3
- name: Run CI script
run: |
echo "Hello github"
bazel run \
--config=remote-envoy-engflow \
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for rbe+cache+bes use the --config=remote-envoy-engflow flag

--@envoy//tools/cat:target=//:hello \
@envoy//tools/cat
env:
GITHUB_TOKEN: ${{ github.token }}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github token needs to be made available

8 changes: 8 additions & 0 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,11 @@ envoy_cc_binary(
"//source/exe:output_transform_main_entry_lib",
],
)

genrule(
name = "hello",
outs = ["world.txt"],
cmd = """
echo HELLO > $@
""",
)
8 changes: 8 additions & 0 deletions bazel/engflow-bazel-credential-helper.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

# Bazel expects the helper to read stdin.
# See https://github.com/bazelbuild/bazel/pull/17666
cat /dev/stdin > /dev/null

# `GITHUB_TOKEN` is provided as a secret.
echo "{\"headers\":{\"Authorization\":[\"Bearer ${GITHUB_TOKEN}\"]}}"
Loading