This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Verify | ||
permissions: | ||
contents: read | ||
on: | ||
pull_request: | ||
jobs: | ||
verify: | ||
permissions: | ||
contents: read | ||
packages: read | ||
steps: | ||
- run: | | ||
# TODO(phlax): Remove this once resolved properly | ||
# Downgrade Docker to workaround https://github.com/containers/skopeo/issues/2365 | ||
sudo install -m 0755 -d /etc/apt/keyrings | ||
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc | ||
sudo chmod a+r /etc/apt/keyrings/docker.asc | ||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] \ | ||
https://download.docker.com/linux/ubuntu \ | ||
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" \ | ||
| sudo tee /etc/apt/sources.list.d/docker.list \ | ||
> /dev/null | ||
sudo apt-get update | ||
sudo apt-get install -y -qq --allow-downgrades \ | ||
docker-ce=5:24.0.9-1~ubuntu.22.04~jammy \ | ||
docker-ce-cli=5:24.0.9-1~ubuntu.22.04~jammy | ||
sudo systemctl restart docker | ||
sudo docker --version | ||
shell: bash | ||
- uses: envoyproxy/toolshed/gh-actions/docker/[email protected] | ||
with: | ||
url: %{{ steps.url.outputs.value }}/docker/envoy.tar | ||
variant: dev | ||
- uses: envoyproxy/toolshed/gh-actions/docker/[email protected] | ||
with: | ||
url: %{{ steps.url.outputs.value }}/docker/envoy-contrib.tar | ||
variant: contrib-dev | ||
- uses: envoyproxy/toolshed/gh-actions/docker/[email protected] | ||
with: | ||
url: %{{ steps.url.outputs.value }}/docker/envoy-google-vrp.tar | ||
variant: google-vrp-dev | ||
- run: docker images | grep envoy | ||
shell: bash | ||
- run: | | ||
# Install expected host packages | ||
export DEBIAN_FRONTEND=noninteractive | ||
sudo apt-get -qq update -y | ||
sudo apt-get -qq install -y --no-install-recommends expect gettext whois | ||
pip install -r ./.github/workflows/verify-requirements.txt | ||
shell: bash | ||
- run: | | ||
./ci/do_ci.sh verify_examples |