config split

This commit is contained in:
Stephan D
2026-03-17 15:30:21 +01:00
parent 231347431e
commit b350f655d9
67 changed files with 1299 additions and 67 deletions

View File

@@ -28,9 +28,10 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
-o /out/aurora-gateway .
FROM alpine:latest AS runtime
ARG APP_CONFIG_PATH=api/gateway/aurora/config.yml
RUN apk add --no-cache ca-certificates tzdata wget
WORKDIR /app
COPY api/gateway/aurora/config.yml /app/config.yml
COPY ${APP_CONFIG_PATH} /app/config.yml
COPY --from=build /out/aurora-gateway /app/aurora-gateway
EXPOSE 50075 9404 8084
ENTRYPOINT ["/app/aurora-gateway"]

View File

@@ -28,9 +28,10 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
-o /out/billing-documents .
FROM alpine:latest AS runtime
ARG APP_CONFIG_PATH=api/billing/documents/config.yml
RUN apk add --no-cache ca-certificates tzdata wget
WORKDIR /app
COPY api/billing/documents/config.yml /app/config.yml
COPY ${APP_CONFIG_PATH} /app/config.yml
COPY api/billing/documents/templates /app/templates
COPY api/billing/documents/assets /app/assets
COPY --from=build /out/billing-documents /app/billing-documents

View File

@@ -28,9 +28,10 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
-o /out/billing-fees .
FROM alpine:latest AS runtime
ARG APP_CONFIG_PATH=api/billing/fees/config.yml
RUN apk add --no-cache ca-certificates tzdata wget
WORKDIR /app
COPY api/billing/fees/config.yml /app/config.yml
COPY ${APP_CONFIG_PATH} /app/config.yml
COPY --from=build /out/billing-fees /app/billing-fees
EXPOSE 50060 9402
ENTRYPOINT ["/app/billing-fees"]

View File

@@ -28,9 +28,10 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
-o /out/chsettle-gateway .
FROM alpine:latest AS runtime
ARG APP_CONFIG_PATH=api/gateway/chsettle/config.yml
RUN apk add --no-cache ca-certificates tzdata wget
WORKDIR /app
COPY api/gateway/chsettle/config.yml /app/config.yml
COPY ${APP_CONFIG_PATH} /app/config.yml
COPY --from=build /out/chsettle-gateway /app/chsettle-gateway
EXPOSE 50080 9406
ENTRYPOINT ["/app/chsettle-gateway"]

View File

@@ -28,9 +28,10 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
-o /out/discovery .
FROM alpine:latest AS runtime
ARG APP_CONFIG_PATH=api/discovery/config.yml
RUN apk add --no-cache ca-certificates tzdata wget
WORKDIR /app
COPY api/discovery/config.yml /app/config.yml
COPY ${APP_CONFIG_PATH} /app/config.yml
COPY --from=build /out/discovery /app/discovery
EXPOSE 9405
ENTRYPOINT ["/app/discovery"]

View File

@@ -28,9 +28,10 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
-o /out/fx-ingestor .
FROM alpine:latest AS runtime
ARG APP_CONFIG_PATH=api/fx/ingestor/config.yml
RUN apk add --no-cache ca-certificates tzdata wget
WORKDIR /app
COPY api/fx/ingestor/config.yml /app/config.yml
COPY ${APP_CONFIG_PATH} /app/config.yml
COPY --from=build /out/fx-ingestor /app/fx-ingestor
EXPOSE 9102
ENTRYPOINT ["/app/fx-ingestor"]

View File

@@ -28,9 +28,10 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
-o /out/fx-oracle .
FROM alpine:latest AS runtime
ARG APP_CONFIG_PATH=api/fx/oracle/config.yml
RUN apk add --no-cache ca-certificates tzdata wget
WORKDIR /app
COPY api/fx/oracle/config.yml /app/config.yml
COPY ${APP_CONFIG_PATH} /app/config.yml
COPY --from=build /out/fx-oracle /app/fx-oracle
EXPOSE 50051 9400
ENTRYPOINT ["/app/fx-oracle"]

View File

@@ -28,9 +28,10 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
-o /out/ledger .
FROM alpine:latest AS runtime
ARG APP_CONFIG_PATH=api/ledger/config.yml
RUN apk add --no-cache ca-certificates tzdata wget
WORKDIR /app
COPY api/ledger/config.yml /app/config.yml
COPY ${APP_CONFIG_PATH} /app/config.yml
COPY --from=build /out/ledger /app/ledger
EXPOSE 50052 9401
ENTRYPOINT ["/app/ledger"]

View File

@@ -28,9 +28,10 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
-o /out/mntx-gateway .
FROM alpine:latest AS runtime
ARG APP_CONFIG_PATH=api/gateway/mntx/config.yml
RUN apk add --no-cache ca-certificates tzdata wget
WORKDIR /app
COPY api/gateway/mntx/config.yml /app/config.yml
COPY ${APP_CONFIG_PATH} /app/config.yml
COPY api/gateway/mntx/entrypoint.sh /app/entrypoint.sh
COPY --from=build /out/mntx-gateway /app/mntx-gateway
RUN chmod +x /app/entrypoint.sh

View File

@@ -28,9 +28,10 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
-o /out/notification .
FROM alpine:latest AS runtime
ARG APP_CONFIG_PATH=api/notification/config.yml
RUN apk add --no-cache ca-certificates tzdata wget
WORKDIR /app
COPY api/notification/config.yml /app/config.yml
COPY ${APP_CONFIG_PATH} /app/config.yml
COPY api/notification/i18n /app/i18n
COPY api/notification/env /app/env
COPY api/pkg/auth/internal/casbin/models/auth.conf /app/env/permissions_model.conf

View File

@@ -28,9 +28,10 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
-o /out/payments-methods .
FROM alpine:latest AS runtime
ARG APP_CONFIG_PATH=api/payments/methods/config.yml
RUN apk add --no-cache ca-certificates tzdata wget
WORKDIR /app
COPY api/payments/methods/config.yml /app/config.yml
COPY ${APP_CONFIG_PATH} /app/config.yml
COPY --from=build /out/payments-methods /app/payments-methods
EXPOSE 50066 9416
ENTRYPOINT ["/app/payments-methods"]

View File

@@ -28,9 +28,10 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
-o /out/payments-orchestrator .
FROM alpine:latest AS runtime
ARG APP_CONFIG_PATH=api/payments/orchestrator/config.yml
RUN apk add --no-cache ca-certificates tzdata wget
WORKDIR /app
COPY api/payments/orchestrator/config.yml /app/config.yml
COPY ${APP_CONFIG_PATH} /app/config.yml
COPY --from=build /out/payments-orchestrator /app/payments-orchestrator
EXPOSE 50062 9403
ENTRYPOINT ["/app/payments-orchestrator"]

View File

@@ -28,9 +28,10 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
-o /out/payments-quotation .
FROM alpine:latest AS runtime
ARG APP_CONFIG_PATH=api/payments/quotation/config.yml
RUN apk add --no-cache ca-certificates tzdata wget
WORKDIR /app
COPY api/payments/quotation/config.yml /app/config.yml
COPY ${APP_CONFIG_PATH} /app/config.yml
COPY --from=build /out/payments-quotation /app/payments-quotation
EXPOSE 50064 9414
ENTRYPOINT ["/app/payments-quotation"]

View File

@@ -28,9 +28,10 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
-o /out/tgsettle-gateway .
FROM alpine:latest AS runtime
ARG APP_CONFIG_PATH=api/gateway/tgsettle/config.yml
RUN apk add --no-cache ca-certificates tzdata wget
WORKDIR /app
COPY api/gateway/tgsettle/config.yml /app/config.yml
COPY ${APP_CONFIG_PATH} /app/config.yml
COPY --from=build /out/tgsettle-gateway /app/tgsettle-gateway
EXPOSE 50080 9406
ENTRYPOINT ["/app/tgsettle-gateway"]

View File

@@ -37,6 +37,7 @@ AURORA_GATEWAY_ENV_NAME="${AURORA_GATEWAY_ENV:-$(resolve_runtime_env_name)}"
load_runtime_env_bundle "${AURORA_GATEWAY_ENV_NAME}"
IMAGE_TAG="$(compute_image_tag)"
AURORA_GATEWAY_CONFIG_PATH="$(resolve_app_config_path "api/gateway/aurora/config.yml")"
REGISTRY_URL="${REGISTRY_URL:?missing REGISTRY_URL}"
APP_V="${APP_V:?missing APP_V}"
@@ -86,6 +87,7 @@ fi
--context "${BUILD_CONTEXT}" \
--dockerfile "${AURORA_GATEWAY_DOCKERFILE}" \
--destination "${REGISTRY_URL}/${AURORA_GATEWAY_IMAGE_PATH}:${IMAGE_TAG}" \
--build-arg APP_CONFIG_PATH="${AURORA_GATEWAY_CONFIG_PATH}" \
--build-arg APP_VERSION="${APP_V}" \
--build-arg GIT_REV="${GIT_REV}" \
--build-arg BUILD_BRANCH="${BUILD_BRANCH}" \

View File

@@ -37,10 +37,7 @@ BFF_ENV_NAME="${BFF_ENV:-$(resolve_runtime_env_name)}"
load_runtime_env_bundle "${BFF_ENV_NAME}"
IMAGE_TAG="$(compute_image_tag)"
BFF_CONFIG_PATH="api/edge/bff/config.yml"
if [ "${CI_RUNTIME_ENV_NAME:-prod}" = "devserver" ] && [ -f "${REPO_ROOT}/api/edge/bff/config.dev.yml" ]; then
BFF_CONFIG_PATH="api/edge/bff/config.dev.yml"
fi
BFF_CONFIG_PATH="$(resolve_app_config_path "api/edge/bff/config.yml")"
REGISTRY_URL="${REGISTRY_URL:?missing REGISTRY_URL}"
APP_V="${APP_V:?missing APP_V}"

View File

@@ -37,6 +37,7 @@ DOCUMENTS_ENV_NAME="${DOCUMENTS_ENV:-$(resolve_runtime_env_name)}"
load_runtime_env_bundle "${DOCUMENTS_ENV_NAME}"
IMAGE_TAG="$(compute_image_tag)"
DOCUMENTS_CONFIG_PATH="$(resolve_app_config_path "api/billing/documents/config.yml")"
REGISTRY_URL="${REGISTRY_URL:?missing REGISTRY_URL}"
APP_V="${APP_V:?missing APP_V}"
@@ -69,6 +70,7 @@ fi
--context "${BUILD_CONTEXT}" \
--dockerfile "${DOCUMENTS_DOCKERFILE}" \
--destination "${REGISTRY_URL}/${DOCUMENTS_IMAGE_PATH}:${IMAGE_TAG}" \
--build-arg APP_CONFIG_PATH="${DOCUMENTS_CONFIG_PATH}" \
--build-arg APP_VERSION="${APP_V}" \
--build-arg GIT_REV="${GIT_REV}" \
--build-arg BUILD_BRANCH="${BUILD_BRANCH}" \

View File

@@ -37,6 +37,7 @@ FEES_ENV_NAME="${FEES_ENV:-$(resolve_runtime_env_name)}"
load_runtime_env_bundle "${FEES_ENV_NAME}"
IMAGE_TAG="$(compute_image_tag)"
FEES_CONFIG_PATH="$(resolve_app_config_path "api/billing/fees/config.yml")"
REGISTRY_URL="${REGISTRY_URL:?missing REGISTRY_URL}"
APP_V="${APP_V:?missing APP_V}"
@@ -69,6 +70,7 @@ fi
--context "${BUILD_CONTEXT}" \
--dockerfile "${FEES_DOCKERFILE}" \
--destination "${REGISTRY_URL}/${FEES_IMAGE_PATH}:${IMAGE_TAG}" \
--build-arg APP_CONFIG_PATH="${FEES_CONFIG_PATH}" \
--build-arg APP_VERSION="${APP_V}" \
--build-arg GIT_REV="${GIT_REV}" \
--build-arg BUILD_BRANCH="${BUILD_BRANCH}" \

View File

@@ -37,10 +37,7 @@ CALLBACKS_ENV_NAME="${CALLBACKS_ENV:-$(resolve_runtime_env_name)}"
load_runtime_env_bundle "${CALLBACKS_ENV_NAME}"
IMAGE_TAG="$(compute_image_tag)"
CALLBACKS_CONFIG_PATH="api/edge/callbacks/config.yml"
if [ "${CI_RUNTIME_ENV_NAME:-prod}" = "devserver" ] && [ -f "${REPO_ROOT}/api/edge/callbacks/config.dev.yml" ]; then
CALLBACKS_CONFIG_PATH="api/edge/callbacks/config.dev.yml"
fi
CALLBACKS_CONFIG_PATH="$(resolve_app_config_path "api/edge/callbacks/config.yml")"
REGISTRY_URL="${REGISTRY_URL:?missing REGISTRY_URL}"
APP_V="${APP_V:?missing APP_V}"

View File

@@ -37,10 +37,7 @@ CHAIN_GATEWAY_ENV_NAME="${CHAIN_GATEWAY_ENV:-$(resolve_runtime_env_name)}"
load_runtime_env_bundle "${CHAIN_GATEWAY_ENV_NAME}"
IMAGE_TAG="$(compute_image_tag)"
CHAIN_GATEWAY_CONFIG_PATH="api/gateway/chain/config.yml"
if [ "${CI_RUNTIME_ENV_NAME:-prod}" = "devserver" ] && [ -f "${REPO_ROOT}/api/gateway/chain/config.dev.yml" ]; then
CHAIN_GATEWAY_CONFIG_PATH="api/gateway/chain/config.dev.yml"
fi
CHAIN_GATEWAY_CONFIG_PATH="$(resolve_app_config_path "api/gateway/chain/config.yml")"
REGISTRY_URL="${REGISTRY_URL:?missing REGISTRY_URL}"
APP_V="${APP_V:?missing APP_V}"

View File

@@ -0,0 +1,88 @@
#!/bin/sh
set -eu
REPO_ROOT="$(cd "$(dirname "$0")/../.." && pwd)"
cd "${REPO_ROOT}"
fail() {
echo "[config-coherence] $*" >&2
exit 1
}
check_absent() {
pattern="$1"
shift
if rg -n "${pattern}" "$@" >/tmp/sendico-config-check.out 2>/dev/null; then
cat /tmp/sendico-config-check.out >&2
fail "unexpected match for pattern: ${pattern}"
fi
}
check_present() {
pattern="$1"
file="$2"
if ! rg -n "${pattern}" "${file}" >/tmp/sendico-config-check.out 2>/dev/null; then
fail "missing required pattern '${pattern}' in ${file}"
fi
}
check_absent 'config\.dev\.yml:/app/config\.yml' docker-compose.dev.yml
check_absent 'advertise_host: "dev-|address: dev-[^"]*:[0-9]+' api/**/config.dev.yml
check_absent 'advertise_host: "sendico_|address: sendico_[^"]*:[0-9]+' api/**/config.local.yml
while IFS= read -r script; do
[ -n "${script}" ] || continue
check_present 'resolve_app_config_path' "${script}"
sh -n "${script}"
done <<'EOF'
ci/scripts/aurora/build-image.sh
ci/scripts/bff/build-image.sh
ci/scripts/billing_documents/build-image.sh
ci/scripts/billing_fees/build-image.sh
ci/scripts/callbacks/build-image.sh
ci/scripts/chain_gateway/build-image.sh
ci/scripts/chsettle/build-image.sh
ci/scripts/discovery/build-image.sh
ci/scripts/fx/build-image.sh
ci/scripts/ledger/build-image.sh
ci/scripts/mntx/build-image.sh
ci/scripts/notification/build-image.sh
ci/scripts/payments_methods/build-image.sh
ci/scripts/payments_orchestrator/build-image.sh
ci/scripts/payments_quotation/build-image.sh
ci/scripts/tgsettle/build-image.sh
ci/scripts/tron_gateway/build-image.sh
EOF
sh -n ci/scripts/common/runtime_env.sh
while IFS= read -r dockerfile; do
[ -n "${dockerfile}" ] || continue
check_present 'ARG APP_CONFIG_PATH=' "${dockerfile}"
check_present 'COPY \$\{APP_CONFIG_PATH\} /app/config.yml' "${dockerfile}"
done <<'EOF'
ci/prod/compose/aurora_gateway.dockerfile
ci/prod/compose/bff.dockerfile
ci/prod/compose/billing_documents.dockerfile
ci/prod/compose/billing_fees.dockerfile
ci/prod/compose/callbacks.dockerfile
ci/prod/compose/chain_gateway.dockerfile
ci/prod/compose/chsettle_gateway.dockerfile
ci/prod/compose/discovery.dockerfile
ci/prod/compose/fx_ingestor.dockerfile
ci/prod/compose/fx_oracle.dockerfile
ci/prod/compose/ledger.dockerfile
ci/prod/compose/mntx_gateway.dockerfile
ci/prod/compose/notification.dockerfile
ci/prod/compose/payments_methods.dockerfile
ci/prod/compose/payments_orchestrator.dockerfile
ci/prod/compose/payments_quotation.dockerfile
ci/prod/compose/tgsettle_gateway.dockerfile
ci/prod/compose/tron_gateway.dockerfile
EOF
if command -v docker >/dev/null 2>&1 && [ -f .env.dev ]; then
docker compose -f docker-compose.dev.yml --env-file .env.dev config >/tmp/sendico-config-check-compose.out
fi
echo "[config-coherence] OK"

View File

@@ -37,6 +37,7 @@ CHSETTLE_GATEWAY_ENV_NAME="${CHSETTLE_GATEWAY_ENV:-$(resolve_runtime_env_name)}"
load_runtime_env_bundle "${CHSETTLE_GATEWAY_ENV_NAME}"
IMAGE_TAG="$(compute_image_tag)"
CHSETTLE_GATEWAY_CONFIG_PATH="$(resolve_app_config_path "api/gateway/chsettle/config.yml")"
REGISTRY_URL="${REGISTRY_URL:?missing REGISTRY_URL}"
APP_V="${APP_V:?missing APP_V}"
@@ -86,6 +87,7 @@ fi
--context "${BUILD_CONTEXT}" \
--dockerfile "${CHSETTLE_GATEWAY_DOCKERFILE}" \
--destination "${REGISTRY_URL}/${CHSETTLE_GATEWAY_IMAGE_PATH}:${IMAGE_TAG}" \
--build-arg APP_CONFIG_PATH="${CHSETTLE_GATEWAY_CONFIG_PATH}" \
--build-arg APP_VERSION="${APP_V}" \
--build-arg GIT_REV="${GIT_REV}" \
--build-arg BUILD_BRANCH="${BUILD_BRANCH}" \

View File

@@ -111,3 +111,15 @@ compute_image_tag() {
: "${GIT_REV:?missing GIT_REV}"
printf '%s-%s\n' "${APP_V}" "${GIT_REV}"
}
resolve_app_config_path() {
config_path="$1"
dev_config_path="${config_path%.yml}.dev.yml"
if [ "${CI_RUNTIME_ENV_NAME:-prod}" = "devserver" ] && [ -f "${dev_config_path}" ]; then
printf '%s\n' "${dev_config_path}"
return
fi
printf '%s\n' "${config_path}"
}

View File

@@ -37,6 +37,7 @@ DISCOVERY_ENV_NAME="${DISCOVERY_ENV:-$(resolve_runtime_env_name)}"
load_runtime_env_bundle "${DISCOVERY_ENV_NAME}"
IMAGE_TAG="$(compute_image_tag)"
DISCOVERY_CONFIG_PATH="$(resolve_app_config_path "api/discovery/config.yml")"
REGISTRY_URL="${REGISTRY_URL:?missing REGISTRY_URL}"
APP_V="${APP_V:?missing APP_V}"
@@ -69,6 +70,7 @@ fi
--context "${BUILD_CONTEXT}" \
--dockerfile "${DISCOVERY_DOCKERFILE}" \
--destination "${REGISTRY_URL}/${DISCOVERY_IMAGE_PATH}:${IMAGE_TAG}" \
--build-arg APP_CONFIG_PATH="${DISCOVERY_CONFIG_PATH}" \
--build-arg APP_VERSION="${APP_V}" \
--build-arg GIT_REV="${GIT_REV}" \
--build-arg BUILD_BRANCH="${BUILD_BRANCH}" \

View File

@@ -37,6 +37,18 @@ FX_ENV_NAME="${FX_ENV:-$(resolve_runtime_env_name)}"
load_runtime_env_bundle "${FX_ENV_NAME}"
IMAGE_TAG="$(compute_image_tag)"
case "$(basename "${FX_DOCKERFILE}")" in
fx_oracle.dockerfile)
FX_CONFIG_PATH="$(resolve_app_config_path "api/fx/oracle/config.yml")"
;;
fx_ingestor.dockerfile)
FX_CONFIG_PATH="$(resolve_app_config_path "api/fx/ingestor/config.yml")"
;;
*)
echo "[fx-build] unsupported dockerfile for config selection: ${FX_DOCKERFILE}" >&2
exit 69
;;
esac
REGISTRY_URL="${REGISTRY_URL:?missing REGISTRY_URL}"
APP_V="${APP_V:?missing APP_V}"
@@ -69,6 +81,7 @@ fi
--context "${BUILD_CONTEXT}" \
--dockerfile "${FX_DOCKERFILE}" \
--destination "${REGISTRY_URL}/${FX_IMAGE_PATH}:${IMAGE_TAG}" \
--build-arg APP_CONFIG_PATH="${FX_CONFIG_PATH}" \
--build-arg APP_VERSION="${APP_V}" \
--build-arg GIT_REV="${GIT_REV}" \
--build-arg BUILD_BRANCH="${BUILD_BRANCH}" \

View File

@@ -37,6 +37,7 @@ LEDGER_ENV_NAME="${LEDGER_ENV:-$(resolve_runtime_env_name)}"
load_runtime_env_bundle "${LEDGER_ENV_NAME}"
IMAGE_TAG="$(compute_image_tag)"
LEDGER_CONFIG_PATH="$(resolve_app_config_path "api/ledger/config.yml")"
REGISTRY_URL="${REGISTRY_URL:?missing REGISTRY_URL}"
APP_V="${APP_V:?missing APP_V}"
@@ -69,6 +70,7 @@ fi
--context "${BUILD_CONTEXT}" \
--dockerfile "${LEDGER_DOCKERFILE}" \
--destination "${REGISTRY_URL}/${LEDGER_IMAGE_PATH}:${IMAGE_TAG}" \
--build-arg APP_CONFIG_PATH="${LEDGER_CONFIG_PATH}" \
--build-arg APP_VERSION="${APP_V}" \
--build-arg GIT_REV="${GIT_REV}" \
--build-arg BUILD_BRANCH="${BUILD_BRANCH}" \

View File

@@ -37,6 +37,7 @@ MNTX_GATEWAY_ENV_NAME="${MNTX_GATEWAY_ENV:-$(resolve_runtime_env_name)}"
load_runtime_env_bundle "${MNTX_GATEWAY_ENV_NAME}"
IMAGE_TAG="$(compute_image_tag)"
MNTX_GATEWAY_CONFIG_PATH="$(resolve_app_config_path "api/gateway/mntx/config.yml")"
REGISTRY_URL="${REGISTRY_URL:?missing REGISTRY_URL}"
APP_V="${APP_V:?missing APP_V}"
@@ -86,6 +87,7 @@ fi
--context "${BUILD_CONTEXT}" \
--dockerfile "${MNTX_GATEWAY_DOCKERFILE}" \
--destination "${REGISTRY_URL}/${MNTX_GATEWAY_IMAGE_PATH}:${IMAGE_TAG}" \
--build-arg APP_CONFIG_PATH="${MNTX_GATEWAY_CONFIG_PATH}" \
--build-arg APP_VERSION="${APP_V}" \
--build-arg GIT_REV="${GIT_REV}" \
--build-arg BUILD_BRANCH="${BUILD_BRANCH}" \

View File

@@ -37,6 +37,7 @@ NOTIFICATION_ENV_NAME="${NOTIFICATION_ENV:-$(resolve_runtime_env_name)}"
load_runtime_env_bundle "${NOTIFICATION_ENV_NAME}"
IMAGE_TAG="$(compute_image_tag)"
NOTIFICATION_CONFIG_PATH="$(resolve_app_config_path "api/notification/config.yml")"
REGISTRY_URL="${REGISTRY_URL:?missing REGISTRY_URL}"
APP_V="${APP_V:?missing APP_V}"
@@ -69,6 +70,7 @@ fi
--context "${BUILD_CONTEXT}" \
--dockerfile "${NOTIFICATION_DOCKERFILE}" \
--destination "${REGISTRY_URL}/${NOTIFICATION_IMAGE_PATH}:${IMAGE_TAG}" \
--build-arg APP_CONFIG_PATH="${NOTIFICATION_CONFIG_PATH}" \
--build-arg APP_VERSION="${APP_V}" \
--build-arg GIT_REV="${GIT_REV}" \
--build-arg BUILD_BRANCH="${BUILD_BRANCH}" \

View File

@@ -37,6 +37,7 @@ PAYMENTS_METHODS_ENV_NAME="${PAYMENTS_METHODS_ENV:-$(resolve_runtime_env_name)}"
load_runtime_env_bundle "${PAYMENTS_METHODS_ENV_NAME}"
IMAGE_TAG="$(compute_image_tag)"
PAYMENTS_METHODS_CONFIG_PATH="$(resolve_app_config_path "api/payments/methods/config.yml")"
REGISTRY_URL="${REGISTRY_URL:?missing REGISTRY_URL}"
APP_V="${APP_V:?missing APP_V}"
@@ -69,6 +70,7 @@ fi
--context "${BUILD_CONTEXT}" \
--dockerfile "${PAYMENTS_METHODS_DOCKERFILE}" \
--destination "${REGISTRY_URL}/${PAYMENTS_METHODS_IMAGE_PATH}:${IMAGE_TAG}" \
--build-arg APP_CONFIG_PATH="${PAYMENTS_METHODS_CONFIG_PATH}" \
--build-arg APP_VERSION="${APP_V}" \
--build-arg GIT_REV="${GIT_REV}" \
--build-arg BUILD_BRANCH="${BUILD_BRANCH}" \

View File

@@ -37,6 +37,7 @@ PAYMENTS_ENV_NAME="${PAYMENTS_ENV:-$(resolve_runtime_env_name)}"
load_runtime_env_bundle "${PAYMENTS_ENV_NAME}"
IMAGE_TAG="$(compute_image_tag)"
PAYMENTS_CONFIG_PATH="$(resolve_app_config_path "api/payments/orchestrator/config.yml")"
REGISTRY_URL="${REGISTRY_URL:?missing REGISTRY_URL}"
APP_V="${APP_V:?missing APP_V}"
@@ -69,6 +70,7 @@ fi
--context "${BUILD_CONTEXT}" \
--dockerfile "${PAYMENTS_DOCKERFILE}" \
--destination "${REGISTRY_URL}/${PAYMENTS_IMAGE_PATH}:${IMAGE_TAG}" \
--build-arg APP_CONFIG_PATH="${PAYMENTS_CONFIG_PATH}" \
--build-arg APP_VERSION="${APP_V}" \
--build-arg GIT_REV="${GIT_REV}" \
--build-arg BUILD_BRANCH="${BUILD_BRANCH}" \

View File

@@ -37,6 +37,7 @@ PAYMENTS_QUOTATION_ENV_NAME="${PAYMENTS_QUOTATION_ENV:-$(resolve_runtime_env_nam
load_runtime_env_bundle "${PAYMENTS_QUOTATION_ENV_NAME}"
IMAGE_TAG="$(compute_image_tag)"
PAYMENTS_QUOTATION_CONFIG_PATH="$(resolve_app_config_path "api/payments/quotation/config.yml")"
REGISTRY_URL="${REGISTRY_URL:?missing REGISTRY_URL}"
APP_V="${APP_V:?missing APP_V}"
@@ -69,6 +70,7 @@ fi
--context "${BUILD_CONTEXT}" \
--dockerfile "${PAYMENTS_QUOTATION_DOCKERFILE}" \
--destination "${REGISTRY_URL}/${PAYMENTS_QUOTATION_IMAGE_PATH}:${IMAGE_TAG}" \
--build-arg APP_CONFIG_PATH="${PAYMENTS_QUOTATION_CONFIG_PATH}" \
--build-arg APP_VERSION="${APP_V}" \
--build-arg GIT_REV="${GIT_REV}" \
--build-arg BUILD_BRANCH="${BUILD_BRANCH}" \

View File

@@ -37,6 +37,7 @@ TGSETTLE_GATEWAY_ENV_NAME="${TGSETTLE_GATEWAY_ENV:-$(resolve_runtime_env_name)}"
load_runtime_env_bundle "${TGSETTLE_GATEWAY_ENV_NAME}"
IMAGE_TAG="$(compute_image_tag)"
TGSETTLE_GATEWAY_CONFIG_PATH="$(resolve_app_config_path "api/gateway/tgsettle/config.yml")"
REGISTRY_URL="${REGISTRY_URL:?missing REGISTRY_URL}"
APP_V="${APP_V:?missing APP_V}"
@@ -86,6 +87,7 @@ fi
--context "${BUILD_CONTEXT}" \
--dockerfile "${TGSETTLE_GATEWAY_DOCKERFILE}" \
--destination "${REGISTRY_URL}/${TGSETTLE_GATEWAY_IMAGE_PATH}:${IMAGE_TAG}" \
--build-arg APP_CONFIG_PATH="${TGSETTLE_GATEWAY_CONFIG_PATH}" \
--build-arg APP_VERSION="${APP_V}" \
--build-arg GIT_REV="${GIT_REV}" \
--build-arg BUILD_BRANCH="${BUILD_BRANCH}" \

View File

@@ -37,10 +37,7 @@ TRON_GATEWAY_ENV_NAME="${TRON_GATEWAY_ENV:-$(resolve_runtime_env_name)}"
load_runtime_env_bundle "${TRON_GATEWAY_ENV_NAME}"
IMAGE_TAG="$(compute_image_tag)"
TRON_GATEWAY_CONFIG_PATH="api/gateway/tron/config.yml"
if [ "${CI_RUNTIME_ENV_NAME:-prod}" = "devserver" ] && [ -f "${REPO_ROOT}/api/gateway/tron/config.dev.yml" ]; then
TRON_GATEWAY_CONFIG_PATH="api/gateway/tron/config.dev.yml"
fi
TRON_GATEWAY_CONFIG_PATH="$(resolve_app_config_path "api/gateway/tron/config.yml")"
REGISTRY_URL="${REGISTRY_URL:?missing REGISTRY_URL}"
APP_V="${APP_V:?missing APP_V}"