ci: migrate to 4-job pipeline with SHA-pinned actions #3

Merged
jcabillot merged 5 commits from feat/gitea-actions-v2 into master 2026-06-08 20:25:07 -04:00
2 changed files with 8 additions and 3 deletions
Showing only changes of commit d1c751ee31 - Show all commits
+1 -1
View File
@@ -2,5 +2,5 @@
set -o pipefail -o nounset -o errexit
echo "${crond_line}" > "/etc/crontabs/root"
echo "${crond_line:-}" > "/etc/crontabs/root"
crond -f -L /dev/stdout
+7 -2
View File
@@ -11,8 +11,13 @@ CONTAINER_NAME="test-crond-$$"
# Test 1: Container starts and crond is running
docker run -d --name "$CONTAINER_NAME" "$IMAGE"
sleep 3
if docker exec "$CONTAINER_NAME" pgrep crond > /dev/null 2>&1; then
sleep 4
if [ "$(docker inspect "$CONTAINER_NAME" --format='{{.State.Running}}')" != "true" ]; then
echo "FAIL: container exited prematurely"
echo "=== Container logs ==="
docker logs "$CONTAINER_NAME" 2>&1 || true
FAILED=$((FAILED + 1))
elif docker exec "$CONTAINER_NAME" pgrep crond > /dev/null 2>&1; then
echo "PASS: crond is running"
PASSED=$((PASSED + 1))
else