ci: unique smoke container names; publish needs a green smoke
ci / static (push) Successful in 7s
ci / test-3.13 (push) Successful in 30s
ci / test-3.12 (push) Successful in 42s
ci / image (push) Successful in 4s
ci / smoke (push) Successful in 6s
ci / publish (push) Successful in 3s

This commit is contained in:
omar committed 2026-11-30 07:59:49 +03:00
1 parent b22521c966
commit 8d048db222
1 file changed
+3 -1
+3 -1
View File
@@ -94,7 +94,7 @@ jobs:
run: | run: |
set -euo pipefail set -euo pipefail
image="$IMAGE:${{ needs.image.outputs.tag }}" image="$IMAGE:${{ needs.image.outputs.tag }}"
name="smoke-$$" name="smoke-$(date +%s%N)-$$"
docker create --name "$name" --network none -e MCP_LIVE_ROUTE=direct -i "$image" > /dev/null docker create --name "$name" --network none -e MCP_LIVE_ROUTE=direct -i "$image" > /dev/null
trap 'docker rm -f "$name" > /dev/null 2>&1 || true' EXIT trap 'docker rm -f "$name" > /dev/null 2>&1 || true' EXIT
python3 scripts/mcp_smoke.py | docker start -a -i "$name" > smoke.out python3 scripts/mcp_smoke.py | docker start -a -i "$name" > smoke.out
@@ -139,6 +139,8 @@ jobs:
if: github.ref == 'refs/heads/main' && github.event_name == 'push' if: github.ref == 'refs/heads/main' && github.event_name == 'push'
runs-on: fetch-mcp-ci runs-on: fetch-mcp-ci
steps: steps:
- name: Require a green smoke
run: test "${{ needs.smoke.result }}" = "success"
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Log in with the package token - name: Log in with the package token
run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login git.eeee.moe -u omar --password-stdin run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login git.eeee.moe -u omar --password-stdin