Initial dev deployment [infra]

This commit is contained in:
Stephan D
2026-03-16 13:18:22 +01:00
parent 260e514957
commit 311d080aa5
91 changed files with 432 additions and 523 deletions

View File

@@ -5,7 +5,6 @@ matrix:
BFF_MONGO_SECRET_PATH: sendico/db
BFF_API_SECRET_PATH: sendico/api/endpoint
BFF_VAULT_SECRET_PATH: sendico/edge/bff/vault
BFF_ENV: prod
labels:
platform: linux/amd64
@@ -21,9 +20,10 @@ when:
- api/payments/methods/go.sum
- api/proto/**
- api/pkg/**
- ci/prod/**
- ci/**
- .woodpecker/bff.yml
ignore_message: '[rebuild]'
- event: tag
ref: refs/tags/v*
steps:
- name: version

View File

@@ -3,7 +3,6 @@ matrix:
- DOCUMENTS_IMAGE_PATH: billing/documents
DOCUMENTS_DOCKERFILE: ci/prod/compose/billing_documents.dockerfile
DOCUMENTS_MONGO_SECRET_PATH: sendico/db
DOCUMENTS_ENV: prod
labels:
platform: linux/amd64
@@ -16,9 +15,10 @@ when:
- api/billing/documents/**
- api/proto/**
- api/pkg/**
- ci/prod/**
- ci/**
- .woodpecker/billing_documents.yml
ignore_message: '[rebuild]'
- event: tag
ref: refs/tags/v*
steps:
- name: version

View File

@@ -3,7 +3,6 @@ matrix:
- FEES_IMAGE_PATH: billing/fees
FEES_DOCKERFILE: ci/prod/compose/billing_fees.dockerfile
FEES_MONGO_SECRET_PATH: sendico/db
FEES_ENV: prod
labels:
platform: linux/amd64
@@ -16,9 +15,10 @@ when:
- api/billing/fees/**
- api/proto/**
- api/pkg/**
- ci/prod/**
- ci/**
- .woodpecker/billing_fees.yml
ignore_message: '[rebuild]'
- event: tag
ref: refs/tags/v*
steps:
- name: version

View File

@@ -4,7 +4,6 @@ matrix:
CALLBACKS_DOCKERFILE: ci/prod/compose/callbacks.dockerfile
CALLBACKS_MONGO_SECRET_PATH: sendico/db
CALLBACKS_VAULT_SECRET_PATH: sendico/edge/callbacks/vault
CALLBACKS_ENV: prod
labels:
platform: linux/amd64
@@ -17,9 +16,10 @@ when:
- api/edge/callbacks/**
- api/proto/**
- api/pkg/**
- ci/prod/**
- ci/**
- .woodpecker/callbacks.yml
ignore_message: '[rebuild]'
- event: tag
ref: refs/tags/v*
steps:
- name: version

View File

@@ -46,9 +46,11 @@ steps:
- apk add --no-cache bash openssh-client rsync coreutils
- mkdir -p /root/.ssh
- install -m 600 secrets/SSH_KEY /root/.ssh/id_rsa
- sed -i 's/\r$//' ./ci/prod/.env.runtime
- . ./ci/scripts/common/runtime_env.sh
- export RUNTIME_ENV_FILE="$(resolve_runtime_env_file "$(resolve_runtime_env_name)")"
- sed -i 's/\r$//' "${RUNTIME_ENV_FILE}"
- set -a
- . ./ci/prod/.env.runtime
- . "${RUNTIME_ENV_FILE}"
- . ./.env.version
- set +a
- bash ci/prod/scripts/bootstrap/network.sh

View File

@@ -2,7 +2,6 @@ matrix:
include:
- DISCOVERY_IMAGE_PATH: discovery/service
DISCOVERY_DOCKERFILE: ci/prod/compose/discovery.dockerfile
DISCOVERY_ENV: prod
labels:
platform: linux/amd64
@@ -15,9 +14,10 @@ when:
- api/discovery/**
- api/proto/**
- api/pkg/**
- ci/prod/**
- ci/**
- .woodpecker/discovery.yml
ignore_message: '[rebuild]'
- event: tag
ref: refs/tags/v*
steps:
- name: version

View File

@@ -2,7 +2,6 @@ matrix:
include:
- FRONTEND_IMAGE_PATH: frontend/service
FRONTEND_DOCKERFILE: ci/prod/compose/frontend.dockerfile
FRONTEND_ENV: prod
labels:
platform: linux/amd64
@@ -17,9 +16,10 @@ when:
- api/proto/**
- frontend/**
- interface/**
- ci/prod/**
- ci/**
- .woodpecker/frontend.yml
ignore_message: '[rebuild]'
- event: tag
ref: refs/tags/v*
steps:
- name: version

View File

@@ -6,7 +6,6 @@ matrix:
FX_DEPLOY_TARGET: ingestor
FX_MONGO_SECRET_PATH: sendico/db
FX_NEEDS_NATS: "true"
FX_ENV: prod
labels:
platform: linux/amd64
@@ -20,9 +19,10 @@ when:
- api/fx/storage/**
- api/proto/**
- api/pkg/**
- ci/prod/**
- ci/**
- .woodpecker/fx_ingestor.yml
ignore_message: '[rebuild]'
- event: tag
ref: refs/tags/v*
steps:
- name: version

View File

@@ -6,7 +6,6 @@ matrix:
FX_DEPLOY_TARGET: oracle
FX_MONGO_SECRET_PATH: sendico/db
FX_NEEDS_NATS: "true"
FX_ENV: prod
labels:
platform: linux/amd64
@@ -20,9 +19,10 @@ when:
- api/fx/storage/**
- api/proto/**
- api/pkg/**
- ci/prod/**
- ci/**
- .woodpecker/fx_oracle.yml
ignore_message: '[rebuild]'
- event: tag
ref: refs/tags/v*
steps:

View File

@@ -6,7 +6,6 @@ matrix:
CHAIN_GATEWAY_RPC_SECRET_PATH: sendico/gateway/chain
CHAIN_GATEWAY_WALLET_SECRET_PATH: sendico/gateway/chain/wallet
CHAIN_GATEWAY_VAULT_SECRET_PATH: sendico/gateway/chain/vault
CHAIN_GATEWAY_ENV: prod
labels:
platform: linux/amd64
@@ -20,9 +19,10 @@ when:
- api/gateway/common/**
- api/proto/**
- api/pkg/**
- ci/prod/**
- ci/**
- .woodpecker/gateway_chain.yml
ignore_message: '[rebuild]'
- event: tag
ref: refs/tags/v*
steps:
- name: version

View File

@@ -2,7 +2,6 @@ matrix:
include:
- MNTX_GATEWAY_IMAGE_PATH: gateway/mntx
MNTX_GATEWAY_DOCKERFILE: ci/prod/compose/mntx_gateway.dockerfile
MNTX_GATEWAY_ENV: prod
MNTX_GATEWAY_MONETIX_SECRET_PATH: sendico/gateway/monetix
MNTX_GATEWAY_NATS_SECRET_PATH: sendico/nats
MNTX_GATEWAY_MONGO_SECRET_PATH: sendico/db
@@ -19,9 +18,10 @@ when:
- api/gateway/common/**
- api/proto/**
- api/pkg/**
- ci/prod/**
- ci/**
- .woodpecker/gateway_mntx.yml
ignore_message: '[rebuild]'
- event: tag
ref: refs/tags/v*
steps:
- name: version

View File

@@ -3,7 +3,6 @@ matrix:
- TGSETTLE_GATEWAY_IMAGE_PATH: gateway/tgsettle
TGSETTLE_GATEWAY_DOCKERFILE: ci/prod/compose/tgsettle_gateway.dockerfile
TGSETTLE_GATEWAY_MONGO_SECRET_PATH: sendico/db
TGSETTLE_GATEWAY_ENV: prod
labels:
platform: linux/amd64
@@ -17,9 +16,10 @@ when:
- api/gateway/common/**
- api/proto/**
- api/pkg/**
- ci/prod/**
- ci/**
- .woodpecker/gateway_tgsettle.yml
ignore_message: '[rebuild]'
- event: tag
ref: refs/tags/v*
steps:
- name: version

View File

@@ -6,7 +6,6 @@ matrix:
TRON_GATEWAY_RPC_SECRET_PATH: sendico/gateway/tron
TRON_GATEWAY_WALLET_SECRET_PATH: sendico/gateway/tron/wallet
TRON_GATEWAY_VAULT_SECRET_PATH: sendico/gateway/tron/vault
TRON_GATEWAY_ENV: prod
labels:
platform: linux/amd64
@@ -20,9 +19,10 @@ when:
- api/gateway/common/**
- api/proto/**
- api/pkg/**
- ci/prod/**
- ci/**
- .woodpecker/gateway_tron.yml
ignore_message: '[rebuild]'
- event: tag
ref: refs/tags/v*
steps:
- name: version

View File

@@ -3,7 +3,6 @@ matrix:
- LEDGER_IMAGE_PATH: ledger/service
LEDGER_DOCKERFILE: ci/prod/compose/ledger.dockerfile
LEDGER_MONGO_SECRET_PATH: sendico/db
LEDGER_ENV: prod
labels:
platform: linux/amd64
@@ -16,9 +15,10 @@ when:
- api/ledger/**
- api/proto/**
- api/pkg/**
- ci/prod/**
- ci/**
- .woodpecker/ledger.yml
ignore_message: '[rebuild]'
- event: tag
ref: refs/tags/v*
steps:
- name: version

View File

@@ -45,9 +45,11 @@ steps:
- apk add --no-cache bash openssh-client rsync coreutils curl sed python3
- mkdir -p /root/.ssh
- install -m 600 secrets/SSH_KEY /root/.ssh/id_rsa
- sed -i 's/\r$//' ./ci/prod/.env.runtime
- . ./ci/scripts/common/runtime_env.sh
- export RUNTIME_ENV_FILE="$(resolve_runtime_env_file "$(resolve_runtime_env_name)")"
- sed -i 's/\r$//' "${RUNTIME_ENV_FILE}"
- set -a
- . ./ci/prod/.env.runtime
- . "${RUNTIME_ENV_FILE}"
- . ./.env.version
- set +a
- export NATS_USER="$(./ci/vlt kv_get kv sendico/nats user)"

View File

@@ -6,7 +6,6 @@ matrix:
NOTIFICATION_MAIL_SECRET_PATH: sendico/notification/mail
NOTIFICATION_API_SECRET_PATH: sendico/api/endpoint
NOTIFICATION_TELEGRAM_SECRET_PATH: sendico/notification/telegram
NOTIFICATION_ENV: prod
labels:
platform: linux/amd64
@@ -19,9 +18,10 @@ when:
- api/notification/**
- api/proto/**
- api/pkg/**
- ci/prod/**
- ci/**
- .woodpecker/notification.yml
ignore_message: '[rebuild]'
- event: tag
ref: refs/tags/v*
steps:
- name: version

View File

@@ -3,7 +3,6 @@ matrix:
- PAYMENTS_METHODS_IMAGE_PATH: payments/methods
PAYMENTS_METHODS_DOCKERFILE: ci/prod/compose/payments_methods.dockerfile
PAYMENTS_METHODS_MONGO_SECRET_PATH: sendico/db
PAYMENTS_METHODS_ENV: prod
labels:
platform: linux/amd64
@@ -17,9 +16,10 @@ when:
- api/payments/storage/**
- api/proto/**
- api/pkg/**
- ci/prod/**
- ci/**
- .woodpecker/payments_methods.yml
ignore_message: '[rebuild]'
- event: tag
ref: refs/tags/v*
steps:
- name: version

View File

@@ -3,7 +3,6 @@ matrix:
- PAYMENTS_IMAGE_PATH: payments/orchestrator
PAYMENTS_DOCKERFILE: ci/prod/compose/payments_orchestrator.dockerfile
PAYMENTS_MONGO_SECRET_PATH: sendico/db
PAYMENTS_ENV: prod
labels:
platform: linux/amd64
@@ -17,9 +16,10 @@ when:
- api/payments/storage/**
- api/proto/**
- api/pkg/**
- ci/prod/**
- ci/**
- .woodpecker/payments_orchestrator.yml
ignore_message: '[rebuild]'
- event: tag
ref: refs/tags/v*
steps:
- name: version

View File

@@ -3,7 +3,6 @@ matrix:
- PAYMENTS_QUOTATION_IMAGE_PATH: payments/quotation
PAYMENTS_QUOTATION_DOCKERFILE: ci/prod/compose/payments_quotation.dockerfile
PAYMENTS_QUOTATION_MONGO_SECRET_PATH: sendico/db
PAYMENTS_QUOTATION_ENV: prod
labels:
platform: linux/amd64
@@ -17,9 +16,10 @@ when:
- api/payments/storage/**
- api/proto/**
- api/pkg/**
- ci/prod/**
- ci/**
- .woodpecker/payments_quotation.yml
ignore_message: '[rebuild]'
- event: tag
ref: refs/tags/v*
steps:
- name: version