Some checks failed
ci/woodpecker/push/billing_fees Pipeline was successful
ci/woodpecker/push/bff Pipeline was successful
ci/woodpecker/push/db Pipeline was successful
ci/woodpecker/push/chain_gateway Pipeline was successful
ci/woodpecker/push/fx_ingestor Pipeline was successful
ci/woodpecker/push/frontend Pipeline was successful
ci/woodpecker/push/fx_oracle Pipeline was successful
ci/woodpecker/push/nats Pipeline was successful
ci/woodpecker/push/ledger Pipeline was successful
ci/woodpecker/push/notification Pipeline was successful
ci/woodpecker/push/payments_orchestrator Pipeline was successful
ci/woodpecker/push/bump_version Pipeline failed
26 lines
672 B
Bash
Executable File
26 lines
672 B
Bash
Executable File
#!/bin/sh
|
|
|
|
replace_env_var() {
|
|
local var_name=$1
|
|
local placeholder="%%$var_name%%"
|
|
local value=$(eval echo \$$var_name)
|
|
# inject value to the index.html
|
|
sed -i "s|$placeholder|$value|g" /usr/share/pweb/index.html
|
|
}
|
|
|
|
echo "Starting Container"
|
|
|
|
replace_env_var "WS_PROTOCOL"
|
|
replace_env_var "WS_ENDPOINT"
|
|
replace_env_var "API_PROTOCOL"
|
|
replace_env_var "SERVICE_HOST"
|
|
replace_env_var "API_ENDPOINT"
|
|
replace_env_var "AMPLITUDE_SECRET"
|
|
replace_env_var "DEFAULT_LOCALE"
|
|
replace_env_var "DEFAULT_CURRENCY"
|
|
|
|
echo "Passing by launch command"
|
|
# Execute the passed command (e.g., starting Caddy)
|
|
# exec "$@"
|
|
exec caddy run --config /etc/caddy/Caddyfile --adapter caddyfile
|