Skip to content

ci/repo: Add deb fetcher #16

ci/repo: Add deb fetcher

ci/repo: Add deb fetcher #16

Workflow file for this run

name: Envoy
permissions:
contents: read
on:
pull_request:
push:
branches:
- main
concurrency:
group: >-
${{ github.event.inputs.head_ref || github.run_id }}
jobs:
envoy:
runs-on: ubuntu-24.04
if: github.repository_owner == 'envoyproxy'
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- id: versions
run: |
bazel build --config=ci //:minor_versions
VERSION_HASH="$(cat bazel-bin/minor_versions.txt | sha256sum)"
echo "hash=${VERSION_HASH}" >> "$GITHUB_OUTPUT"
- uses: actions/cache/restore@v4
with:
key: ${{ steps.versions.outputs.hash }}
path: /tmp/repository
- run: |
mkdir -p /tmp/repository/v1.28.3
# check if there is anything to do
bazel build --config=ci //:patch_versions
patch_versions=$(cat bazel-bin/patch_versions.txt | sort -u)
version_dirs=$(ls /tmp/repository | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+' | sort -u)
missing=$(comm -23 <(echo "$patch_versions") <(echo "$version_dirs"))
echo "$missing"
exit 1
- run: |
bazel build --config=ci //:debs
tar tf bazel-bin/debs.tar.gz
ls -alh bazel-bin/debs.tar.gz