File tree Expand file tree Collapse file tree 3 files changed +8
-15
lines changed Expand file tree Collapse file tree 3 files changed +8
-15
lines changed Original file line number Diff line number Diff line change 25
25
- name : Checkout.
26
26
uses : actions/checkout@v5
27
27
28
- - name : Docker version.
29
- run : |
30
- docker version
31
- docker compose version
32
-
33
28
- name : Build and start containers.
34
- run : docker compose up -d --build
35
-
36
- - name : Wait for readiness.
37
- run : |
38
- for i in {1..60}; do
39
- if docker exec yii2-apache sh -lc "curl -ksS -o /dev/null -w '%{http_code}' https://localhost | grep -qE '200|302'"; then
40
- echo "Service is ready"; exit 0; fi
41
- sleep 2
42
- done
43
- echo "Service not ready"; docker logs yii2-apache; exit 1
29
+ run : docker compose up -d --build --wait
44
30
45
31
- name : Codeception build.
46
32
run : docker exec yii2-apache vendor/bin/codecept build
Original file line number Diff line number Diff line change 19
19
- Bug #180 : Update paths to ignore in GitHub Actions workflow for pull requests and pushes (@terabytesoftw )
20
20
- Bug #184 : Update Docker commands and badge links in ` README.md ` for accurate workflow status (@terabytesoftw )
21
21
- Bug #186 : Rename steps for clarity in GitHub Actions workflow ` build.yml ` (@terabytesoftw )
22
+ - Bug #190 : Simplify Docker workflow by removing unnecessary steps and adding healthcheck configuration (@terabytesoftw )
22
23
23
24
## 0.1.0 August 31, 2025
24
25
Original file line number Diff line number Diff line change @@ -16,6 +16,12 @@ services:
16
16
TZ : " UTC"
17
17
YII_DEBUG : " ${YII_DEBUG:-false}"
18
18
YII_ENV : " ${YII_ENV:-prod}"
19
+ healthcheck :
20
+ test : ["CMD-SHELL", "curl -f http://localhost/ || exit 1"]
21
+ interval : 10s
22
+ timeout : 5s
23
+ retries : 5
24
+ start_period : 25s
19
25
ports :
20
26
- ' 8080:80'
21
27
- ' 8443:443'
You can’t perform that action at this time.
0 commit comments