feat: add initial multi-environment CI/CD pipeline POC
CI Pipeline / HTML Lint (push) Successful in 1m4s
Deploy QA / Build and Push (push) Successful in 42s
Deploy QA / Deploy to QA (push) Failing after 7s
Deploy QA / Notification (push) Failing after 1s
CI Pipeline / Build Docker Image (push) Failing after 35s
CI Pipeline / Security Scan (push) Has been skipped
CI Pipeline / Generate Summary (push) Failing after 1s
CI Pipeline / HTML Lint (push) Successful in 1m4s
Deploy QA / Build and Push (push) Successful in 42s
Deploy QA / Deploy to QA (push) Failing after 7s
Deploy QA / Notification (push) Failing after 1s
CI Pipeline / Build Docker Image (push) Failing after 35s
CI Pipeline / Security Scan (push) Has been skipped
CI Pipeline / Generate Summary (push) Failing after 1s
Adds all required files for the proof of concept: - Gitea Actions CI/CD workflows for QA, staging, and production environments - Docker build configuration with healthcheck and runtime environment injection - Nginx server config with security headers and health endpoint - Sample static frontend application displaying environment metrics - Comprehensive README documentation with architecture, setup, and usage instructions
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
set -euo pipefail
|
||||
|
||||
APP_ENV="${APP_ENV:-development}"
|
||||
APP_VERSION="${APP_VERSION:-0.0.0}"
|
||||
BUILD_DATE="${BUILD_DATE:-}"
|
||||
GIT_COMMIT="${GIT_COMMIT:-}"
|
||||
GIT_BRANCH="${GIT_BRANCH:-}"
|
||||
DEPLOY_TIME="${DEPLOY_TIME:-}"
|
||||
BUILD_NUMBER="${BUILD_NUMBER:-}"
|
||||
|
||||
cat > /usr/share/nginx/html/env-config.js << EOF
|
||||
window.__ENV__ = {
|
||||
APP_ENV: "${APP_ENV}",
|
||||
APP_VERSION: "${APP_VERSION}",
|
||||
BUILD_DATE: "${BUILD_DATE}",
|
||||
GIT_COMMIT: "${GIT_COMMIT}",
|
||||
GIT_BRANCH: "${GIT_BRANCH}",
|
||||
DEPLOY_TIME: "${DEPLOY_TIME}",
|
||||
BUILD_NUMBER: "${BUILD_NUMBER}"
|
||||
};
|
||||
EOF
|
||||
|
||||
exec "$@"
|
||||
Reference in New Issue
Block a user