2 Commits

Author SHA1 Message Date
Stephan D
71a67e1f6d removed trash
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
2025-11-18 17:33:01 +01:00
Stephan D
c5cdb7d2ae +caddy proxy fix +version bump fix 2025-11-18 17:32:23 +01:00
2 changed files with 8 additions and 4 deletions

View File

@@ -83,6 +83,7 @@ normalize_machine() {
s#^[[:alpha:]][[:alnum:]+.-]*://##;
s#^[^@]*@##;
s#/.*$##;
s#:[0-9]+$##;
'
}
@@ -95,6 +96,8 @@ if [ -z "${NETRC_MACHINE}" ] && [ -n "${REMOTE_URL}" ]; then
fi
if [ -n "${NETRC_MACHINE}" ] && [ -n "${NETRC_USERNAME}" ] && [ -n "${NETRC_PASSWORD}" ]; then
MASKED_USER="$(printf '%s' "${NETRC_USERNAME}" | cut -c1-2)***"
echo "[bump-version] configuring credentials for ${NETRC_MACHINE} (user ${MASKED_USER})"
NETRC_FILE="${HOME:-/root}/.netrc"
{
printf 'machine %s\n' "${NETRC_MACHINE}"
@@ -102,10 +105,12 @@ if [ -n "${NETRC_MACHINE}" ] && [ -n "${NETRC_USERNAME}" ] && [ -n "${NETRC_PASS
printf 'password %s\n' "${NETRC_PASSWORD}"
} > "${NETRC_FILE}"
chmod 600 "${NETRC_FILE}"
echo "[bump-version] configured credentials for ${NETRC_MACHINE}"
else
echo "[bump-version] no netrc credentials available"
fi
if [ -n "${REMOTE_URL}" ]; then
echo "[bump-version] using remote ${REMOTE_URL}"
git remote set-url origin "${REMOTE_URL}"
fi

View File

@@ -11,8 +11,6 @@
########################################
(sendico_site) {
vars static_root /usr/share/pweb
# Allow overriding upstream via API_UPSTREAM, default to the BFF container.
vars api_upstream {$API_UPSTREAM:sendico-bff:8081}
encode zstd gzip
@@ -25,7 +23,8 @@
# Backend API
########################################
handle /api/v1/* {
reverse_proxy {vars.api_upstream} {
# Allow overriding upstream via API_UPSTREAM, default to the BFF container.
reverse_proxy {$API_UPSTREAM:sendico-bff:8081} {
health_uri /api/v1/health
health_interval 15s
health_timeout 4s