Skip to content

Commit 71f5e04

Browse files
committed
ci: Add github build
Signed-off-by: Ryan Northey <[email protected]>
1 parent 75ebbf0 commit 71f5e04

File tree

5 files changed

+38
-2
lines changed

5 files changed

+38
-2
lines changed

.github/workflows/build.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Build
2+
3+
permissions:
4+
contents: read
5+
6+
on:
7+
pull_request:
8+
push:
9+
branches:
10+
- main
11+
12+
concurrency:
13+
group: >-
14+
${{ github.event.inputs.head_ref || github.run_id }}
15+
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest-8-cores
20+
if: ${{ false && github.repository_owner == 'envoyproxy' }}
21+
steps:
22+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
23+
- run: |
24+
sudo mkdir /opt/build
25+
sudo chown runner:docker /opt/build
26+
./build-repository.sh
27+
du -ch /opt/build
28+
du -ch ~/.cache
29+
env:
30+
CONTEXT: deploy-preview
31+
GITHUB_TOKEN: ${{ github.token }}

build-repository.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ UNDERLINE="\e[4m"
77
NORMAL="\e[0m"
88

99
EXCLUDE_FILE=debs/excludes.txt
10-
DEBS_ROOT=/opt/build/cache/repository
10+
DEBS_ROOT="${DEBS_ROOT:-/opt/build/cache/repository}"
11+
OUTPUT_DIR="${OUTPUT_DIR:-/opt/build/repo/html}"
1112
SIGNING_KEY_PASSPHRASE="${SIGNING_KEY_PASSPHRASE:-Hackme}"
1213

1314

@@ -103,8 +104,9 @@ main () {
103104
fi
104105
bazel run \
105106
"${bazel_args[@]}" \
107+
--config=debug-bazel \
106108
//tools/tarball:unpack \
107-
/opt/build/repo/html
109+
$OUTPUT_DIR
108110
}
109111

110112
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then

debs/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ export APTLY_CONF="$(location //:aptly-config)"
172172
export DEBS="$(location :debs)"
173173
export DEBS_ROOT="$${APT_ROOT}/repository"
174174
export SIGNING_TOKEN="$(location :signing-token)"
175+
ls -alh /opt/build
175176
$(location :publish)
176177
tar hcf $@ -C $${APT_ROOT}/html .
177178
"""

netlify-should-run.sh

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
exit 1

netlify.toml

100644100755
+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[build]
22
publish = "html"
33
command = "./build-repository.sh"
4+
ignore = "./netlify-should-run.sh"
45

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

0 commit comments

Comments
 (0)