mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-27 20:16:28 -08:00
Disable every job except the gotst swarms while developing them, so test pushes don't queue up unrelated work. Drop this commit before merging. Updates tailscale/corp#46045 Change-Id: Id7ef64f8e7321b6b6350f92e29ab48d80a2fe418 Signed-off-by: Brad Fitzpatrick <[email protected]>
31 lines
1.0 KiB
YAML
31 lines
1.0 KiB
YAML
name: "Validate Docker base image"
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
paths:
|
|
- "Dockerfile.base"
|
|
- ".github/workflows/docker-base.yml"
|
|
jobs:
|
|
build-and-test:
|
|
if: false # DEV ONLY: disabled while developing the gotst swarms
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
- name: "build and test"
|
|
run: |
|
|
set -e
|
|
IMG="test-base:$(head -c 8 /dev/urandom | xxd -p)"
|
|
docker build -t "$IMG" -f Dockerfile.base .
|
|
|
|
iptables_version=$(docker run --rm "$IMG" iptables --version)
|
|
if [[ "$iptables_version" != *"(legacy)"* ]]; then
|
|
echo "ERROR: Docker base image should contain legacy iptables; found ${iptables_version}"
|
|
exit 1
|
|
fi
|
|
|
|
ip6tables_version=$(docker run --rm "$IMG" ip6tables --version)
|
|
if [[ "$ip6tables_version" != *"(legacy)"* ]]; then
|
|
echo "ERROR: Docker base image should contain legacy ip6tables; found ${ip6tables_version}"
|
|
exit 1
|
|
fi
|