ci: start the smoke-test containers with the variables M2 requires
CI / Build and test (SQLite) (pull_request) Successful in 59s
CI / PostgreSQL 16 integration (pull_request) Skipped
CI / PostgreSQL 17 integration (pull_request) Skipped
CI / YAML check (pull_request) Successful in 4s
CI / Docker image (pull_request) Successful in 1m20s
CI / Build and test (SQLite) (pull_request) Successful in 59s
CI / PostgreSQL 16 integration (pull_request) Skipped
CI / PostgreSQL 17 integration (pull_request) Skipped
CI / YAML check (pull_request) Successful in 4s
CI / Docker image (pull_request) Successful in 1m20s
Since M2 the instance refuses to start without a secret key, a super user and a first company, and the home page redirects to the login. The CI and release smoke tests now pass a throwaway key and test values, wait for /health/ready and check the login page and its security headers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
032c602b49
commit
4502526f4d
2 files changed
+18
-9
No files matched your search
@@ -113,15 +113,18 @@ jobs:
|
||||
--label khaemhat-ci.job="$(hostname)" \
|
||||
-t "$IMAGE:$VERSION" .
|
||||
|
||||
- name: Smoke test (/health/live)
|
||||
- name: Smoke test (/health/ready)
|
||||
if: env.PUBLISHED != 'true'
|
||||
run: |
|
||||
docker network create --label khaemhat-ci.job="$(hostname)" "$NAME"
|
||||
docker network connect "$NAME" "$(hostname)"
|
||||
docker run -d --name "$NAME-app" --network "$NAME" --label khaemhat-ci.job="$(hostname)" \
|
||||
-e KHAEMHAT_SYSTEM_DB=sqlite:///data/system.db -e KHAEMHAT_LICENSE_MODE=test "$IMAGE:$VERSION"
|
||||
for i in $(seq 1 30); do
|
||||
if curl -fsS --max-time 5 "http://$NAME-app:8080/health/live"; then echo; break; fi
|
||||
-e KHAEMHAT_SYSTEM_DB=sqlite:///data/system.db -e KHAEMHAT_LICENSE_MODE=test \
|
||||
-e KHAEMHAT_SECRET_KEY="$(head -c 32 /dev/urandom | base64)" \
|
||||
-e KHAEMHAT_SUPERUSER=root -e KHAEMHAT_SUPERUSER_PASSWORD=Ci-Smoke-Test-2026 -e KHAEMHAT_COMPANY_CODE=CI \
|
||||
"$IMAGE:$VERSION"
|
||||
for i in $(seq 1 60); do
|
||||
if curl -fsS --max-time 5 "http://$NAME-app:8080/health/ready"; then echo; break; fi
|
||||
sleep 2
|
||||
done
|
||||
report="$(curl -fsS --max-time 5 "http://$NAME-app:8080/health")"
|
||||
|
||||
Reference in new issue
Block a user