fix(build-and-push): hard-timeout the SSH probe so it can't hang
All checks were successful
Test build-and-push (self-test) / Build tiny multi-arch image (push) Successful in 8s

ConnectTimeout only bounds the TCP handshake; wrap ssh in a 25s timeout
plus keepalives so a firewall that accepts SYN then drops packets fails
fast with a clear diagnostic instead of hanging the runner.
This commit is contained in:
2026-07-12 13:38:33 -03:00
parent 677c57e6f9
commit dec613eb63
2 changed files with 23 additions and 11 deletions

View File

@@ -1,9 +1,5 @@
name: Test build-and-push (self-test)
# Validates the build-and-push composite action end-to-end against the remote
# docker-build.haven buildx builder, using a tiny throwaway image. Runs on
# manual dispatch and whenever the action itself changes.
on:
workflow_dispatch: {}
push:
@@ -14,8 +10,6 @@ on:
- .gitea/workflows/test-build.yaml
env:
# Throwaway image ref — kept separate from any real project image so this
# self-test can never clobber a production tag.
IMAGE: git.ivanch.me/ivanch/pipeline-actions-selftest
jobs: