docs: update README and CI workflow to clarify Docker workspace mounting for bird2 job
This commit is contained in:
@@ -87,13 +87,23 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: bird -p on all scenario bird.conf files
|
||||
env:
|
||||
WORKSPACE: ${{ github.workspace }}
|
||||
run: |
|
||||
set -euxo pipefail
|
||||
# $PWD на act/Gitea runner не всегда корень репозитория; монтируем именно checkout.
|
||||
WS="${WORKSPACE:-$PWD}"
|
||||
cd "$WS"
|
||||
if [ ! -f internal/birdfmt/testdata/scenarios/minimal/bird.conf ]; then
|
||||
echo "Нет сценариев BIRD в checkout. Проверьте, что internal/birdfmt/testdata/scenarios закоммичен и push в remote."
|
||||
ls -la internal/birdfmt/testdata/ 2>/dev/null || ls -la
|
||||
exit 1
|
||||
fi
|
||||
for conf in internal/birdfmt/testdata/scenarios/*/bird.conf; do
|
||||
echo "==> $conf"
|
||||
docker run --rm \
|
||||
-e "BIRD_CONF=/work/${conf}" \
|
||||
-v "$PWD:/work:ro" \
|
||||
-v "${WS}:/work:ro" \
|
||||
debian:bookworm-slim \
|
||||
bash -ceu 'apt-get update -qq && DEBIAN_FRONTEND=noninteractive apt-get install -y -qq bird2 >/dev/null && bird -c "$BIRD_CONF" -p'
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user