Some checks failed
CI / Rustfmt (push) Successful in 22s
CI / Cargo Audit & Deny (push) Successful in 36s
CI / Security Blocking Checks (push) Successful in 6s
CI / Web Blocking Checks (push) Successful in 53s
CI / Web Advisory Checks (push) Successful in 34s
Publish Images / Resolve Publish Metadata (push) Successful in 1s
CI / Security Advisory Checks (push) Successful in 38s
CI / Clippy (push) Successful in 2m7s
Publish Images / Publish Docker Dist Bundle (push) Failing after 19s
Publish Images / Publish web (amd64) (push) Successful in 49s
Publish Images / Publish web (arm64) (push) Successful in 3m31s
CI / Tests (push) Successful in 8m48s
Publish Images / Build Rust Bundles (amd64) (push) Successful in 12m42s
Publish Images / Build Rust Bundles (arm64) (push) Successful in 12m19s
Publish Images / Publish agent (amd64) (push) Successful in 26s
Publish Images / Publish api (amd64) (push) Successful in 38s
Publish Images / Publish notifier (amd64) (push) Successful in 42s
Publish Images / Publish executor (amd64) (push) Successful in 46s
Publish Images / Publish agent (arm64) (push) Successful in 56s
Publish Images / Publish api (arm64) (push) Successful in 1m52s
Publish Images / Publish executor (arm64) (push) Successful in 2m2s
Publish Images / Publish notifier (arm64) (push) Successful in 2m3s
Publish Images / Publish manifest attune/agent (push) Successful in 6s
Publish Images / Publish manifest attune/api (push) Successful in 11s
Publish Images / Publish manifest attune/executor (push) Successful in 10s
Publish Images / Publish manifest attune/notifier (push) Successful in 8s
Publish Images / Publish manifest attune/web (push) Successful in 8s
25 lines
705 B
Bash
Executable File
25 lines
705 B
Bash
Executable File
#!/bin/sh
|
|
# inject-env.sh - Injects runtime environment variables into the Web UI
|
|
# This script runs at container startup to make environment variables available to the browser
|
|
|
|
set -e
|
|
|
|
# Default values
|
|
API_URL="${API_URL:-http://localhost:8080}"
|
|
WS_URL="${WS_URL:-ws://localhost:8081}"
|
|
|
|
# Create runtime configuration file
|
|
cat > /usr/share/nginx/html/config/runtime-config.js <<EOF
|
|
// Runtime configuration injected at container startup
|
|
window.ATTUNE_CONFIG = {
|
|
apiUrl: '${API_URL}',
|
|
wsUrl: '${WS_URL}',
|
|
environment: '${ENVIRONMENT:-production}'
|
|
};
|
|
EOF
|
|
|
|
echo "Runtime configuration injected:"
|
|
echo " API_URL: ${API_URL}"
|
|
echo " WS_URL: ${WS_URL}"
|
|
echo " ENVIRONMENT: ${ENVIRONMENT:-production}"
|