Skip to content

Commit e4d57b5

Browse files
committed
fix(build): Update Docker commands and badge links in README.md for accurate workflow status.
1 parent 93af7cb commit e4d57b5

File tree

5 files changed

+23
-13
lines changed

5 files changed

+23
-13
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,22 @@ jobs:
2525
- name: Checkout.
2626
uses: actions/checkout@v5
2727

28-
- name: Install docker compose.
28+
- name: Show docker version.
2929
run: |
30-
sudo curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
31-
sudo chmod +x /usr/local/bin/docker-compose
32-
docker-compose --version
30+
docker version
31+
docker compose version
3332
3433
- name: Build and start containers.
35-
run: docker-compose up -d --build
34+
run: docker compose up -d --build
3635

37-
- name: Wait for container to be ready.
36+
- name: Wait for readiness.
3837
run: |
39-
echo "Waiting 30 seconds for container initialization..."
40-
sleep 30
41-
docker logs yii2-apache
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
4244
4345
- name: Codeceptcion build.
4446
run: docker exec yii2-apache vendor/bin/codecept build

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
- Bug #175: Update allowed IPs in configuration for development purposes in `configuration.md` (@terabytesoftw)
1818
- Bug #177: Add missing config path to ECS configuration in `ecs.php` (@terabytesoftw)
1919
- Bug #180: Update paths to ignore in GitHub Actions workflow for pull requests and pushes (@terabytesoftw)
20+
- Bug #184: Update Docker commands and badge links in `README.md` for accurate workflow status (@terabytesoftw)
2021

2122
## 0.1.0 August 31, 2025
2223

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
<a href="https://github.com/yiisoft/yii2/tree/22.0" target="_blank">
1616
<img src="https://img.shields.io/badge/22.0.x-0073AA.svg?style=for-the-badge&logo=yii&logoColor=white" alt="Yii 22.0.x">
1717
</a>
18-
<a href="https://github.com/yii2-extensions/app-basic/actions/workflows/build.yml" target="_blank">
18+
<a href="https://github.com/yii2-extensions/app-basic/actions/workflows/build.yml?query=branch%3Aapache" target="_blank">
1919
<img src="https://img.shields.io/github/actions/workflow/status/yii2-extensions/app-basic/build.yml?branch=apache&style=for-the-badge&label=Codeception" alt="Codeception">
2020
</a>
21-
<a href="https://github.com/yii2-extensions/app-basic/actions/workflows/static.yml" target="_blank">
21+
<a href="https://github.com/yii2-extensions/app-basic/actions/workflows/static.yml?query=branch%3Aapache" target="_blank">
2222
<img src="https://img.shields.io/github/actions/workflow/status/yii2-extensions/app-basic/static.yml?branch=apache&style=for-the-badge&label=PHPStan" alt="PHPStan">
2323
</a>
2424
</p>

docker/php/php.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
date.timezone = UTC
33
display_errors = Off
44
expose_php = Off
5+
log_errors = On
6+
error_log = /proc/self/fd/2
57
memory_limit = 512M
68
post_max_size = 150M
79
session.auto_start = Off

docker/supervisor/conf.d/queue.conf

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,13 @@
22
process_name=%(program_name)s_%(process_num)02d
33
command=/usr/local/bin/php /app/yii queue/listen --verbose=1 --color=0
44
autorestart=true
5-
autostart=true
6-
numprocs=4
5+
# Enable only after installing yiisoft/yii2-queue; flipped on via image build or entrypoint.
6+
autostart=false
7+
# Keep demo light; can be raised later.
8+
numprocs=1
9+
stopasgroup=true
10+
killasgroup=true
11+
stopsignal=TERM
712
stderr_logfile=/dev/stderr
813
stderr_logfile_maxbytes=0
914
stdout_logfile=/dev/stdout

0 commit comments

Comments
 (0)