File tree Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 2525
2626 - name : Run as service and test
2727 run : |
28- # Start the staging service using docker compose (context will be _site now)
29- docker compose up -d --build staging
30-
31- # Wait for the health check to pass (healthcheck should handle readiness)
32- echo "Waiting for service to be ready..."
33- timeout 60 bash -c 'until curl -f http://localhost:8080/ >/dev/null 2>&1; do sleep 2; done'
28+ # Start the staging service using docker compose with --wait for health checks
29+ # Use CI-specific override for GitHub Actions cache
30+ docker compose -f docker-compose.yml -f docker-compose.ci.yml up -d --build --wait staging
3431
3532 # Perform the tests
3633 set +e # Don't exit on error so we can clean up
4138 curl -I -f http://localhost:8080/wiki/lego || exit_code=1
4239
4340 # Stop the service regardless of test outcome
44- docker compose stop staging
41+ docker compose -f docker-compose.yml -f docker-compose.ci.yml stop staging
4542
4643 # Exit with the test result
4744 exit $exit_code
Original file line number Diff line number Diff line change 1+ services :
2+ staging :
3+ build :
4+ cache_from :
5+ - type=gha
6+ cache_to :
7+ - type=gha,mode=max
Original file line number Diff line number Diff line change @@ -109,10 +109,6 @@ services:
109109 build :
110110 context : ./_site
111111 dockerfile : ../.github/scripts/staging/Dockerfile
112- cache_from :
113- - type=gha
114- cache_to :
115- - type=gha,mode=max
116112 ports :
117113 - 8080:80
118114 healthcheck :
You can’t perform that action at this time.
0 commit comments