feat: add initial multi-environment CI/CD pipeline POC #3

Merged
nietzshn merged 24 commits from staging into main 2026-06-02 22:31:09 -06:00
Showing only changes of commit a1cd748e0f - Show all commits
+2 -4
View File
@@ -76,11 +76,10 @@ jobs:
-e GIT_COMMIT=${{ gitea.sha }} \ -e GIT_COMMIT=${{ gitea.sha }} \
-e GIT_BRANCH=${{ gitea.ref_name }} \ -e GIT_BRANCH=${{ gitea.ref_name }} \
-e DEPLOY_TIME=$(date -u +"%Y-%m-%dT%H:%M:%SZ") \ -e DEPLOY_TIME=$(date -u +"%Y-%m-%dT%H:%M:%SZ") \
-p 8080:80 \
ci-image:latest ci-image:latest
CI_IP=$(docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' ci-test)
for i in $(seq 1 12); do for i in $(seq 1 12); do
if curl -sf http://localhost:8080/health > /dev/null 2>&1; then if curl -sf http://$CI_IP/health > /dev/null 2>&1; then
echo "::notice::Health check passed" echo "::notice::Health check passed"
docker logs ci-test 2>&1 || true docker logs ci-test 2>&1 || true
docker stop ci-test docker stop ci-test
@@ -89,7 +88,6 @@ jobs:
fi fi
sleep 5 sleep 5
done done
echo "::error::Health check failed after 60 seconds" echo "::error::Health check failed after 60 seconds"
docker logs ci-test 2>&1 || true docker logs ci-test 2>&1 || true
docker stop ci-test docker stop ci-test