Skip to content

Commit

Permalink
ci: Add github build
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Northey <[email protected]>
  • Loading branch information
phlax committed Jan 10, 2025
1 parent 2c6373e commit becc898
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ common:publish-ci --config=debs-ci
common:publish-ci --//tools/tarball:target=//:html
common:publish-ci --//tools/tarball:overwrite=//tools/tarball:true
common:publish-ci --//debs:signing-token=//debs:signing-token.txt

common:debug-bazel --announce_rc
common:debug-bazel -s
26 changes: 26 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build

permissions:
contents: read

on:
pull_request:
push:
branches:
- main

concurrency:
group: >-
${{ github.event.inputs.head_ref || github.run_id }}
jobs:
build:
runs-on: ubuntu-latest-8-cores
if: github.repository_owner == 'envoyproxy'
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- run: |
./build-repository.sh
env:
CONTEXT: deploy-preview
3 changes: 3 additions & 0 deletions build-repository.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ underline () {
}

import_public_key () {
mkdir -p ~/.gnupg
# chmod 700 ~/.gnupg
touch ~/.gnupg/trustedkeys.gpg
echo -e "$(underline $(bold "Import maintainers public key: checksum verification"))"
gpg --import envoy-maintainers-public.key
Expand Down Expand Up @@ -102,6 +104,7 @@ main () {
fi
bazel run \
"${bazel_args[@]}" \
--config=debug-bazel \
//tools/tarball:unpack \
/opt/build/repo/html
}
Expand Down
1 change: 1 addition & 0 deletions netlify-should-run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
exit 1
1 change: 1 addition & 0 deletions netlify.toml
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[build]
publish = "html"
command = "./build-repository.sh"
ignore = "./netlify-should-run.sh"

[build.environment]
BAZELISK_HOME="/opt/build/cache/bazelisk"

0 comments on commit becc898

Please sign in to comment.