4 Commits

Author SHA1 Message Date
Alex Shevchuk
62ce86f1c4 updated stg pots
Some checks failed
Go Linter / Build golang services (api_gateway) (push) Has been cancelled
Go Linter / Tag Commit (push) Has been cancelled
Go Linter / Push Docker Images (api_gateway) (push) Has been cancelled
Go Linter / Run golangci-lint (api_gateway) (push) Has been cancelled
2025-09-22 13:01:59 +03:00
Alex Shevchuk
ce7aecf8be updated stg deploy
Some checks failed
Go Linter / Build golang services (api_gateway) (push) Has been cancelled
Go Linter / Tag Commit (push) Has been cancelled
Go Linter / Push Docker Images (api_gateway) (push) Has been cancelled
Go Linter / Run golangci-lint (api_gateway) (push) Has been cancelled
2025-09-22 12:58:13 +03:00
Alex Shevchuk
f64936e0f3 77 СЕМЬ
All checks were successful
Go Linter / Run golangci-lint (api_gateway) (push) Successful in 3m56s
Go Linter / Tag Commit (push) Successful in 15s
Go Linter / Build golang services (api_gateway) (push) Successful in 4m15s
Go Linter / Push Docker Images (api_gateway) (push) Successful in 5m0s
2025-09-17 16:28:57 +03:00
Alex Shevchuk
a11e3b3a82 77 СЕМЬ
All checks were successful
Go Linter / Run golangci-lint (api_gateway) (push) Successful in 3m51s
Go Linter / Tag Commit (push) Successful in 12s
Go Linter / Build golang services (api_gateway) (push) Successful in 4m15s
Go Linter / Push Docker Images (api_gateway) (push) Successful in 8m11s
2025-09-17 16:13:32 +03:00
6 changed files with 27 additions and 31 deletions

View File

@@ -0,0 +1,22 @@
env: "local"
host: "0.0.0.0"
port: 8000
broker:
notificationsQueueName: "molva-notification"
cache:
readOnly: false
dialTimeout: 1h
poolSize: 10
defaultTtl: 1h
rootCaFilePath: "/etc/.redis/YandexInternalRootCA.crt"
s3Storage:
bucket: "molva-staging" # TODO: change to prod bucket
defaultLinkTtl: 1h
database:
schema: test_schema # TODO: change to prod schema
sslmode: require
rootCaFilePath: "/etc/.postgres/YandexInternalRootCA.crt"

View File

@@ -19,4 +19,4 @@ s3Storage:
database: database:
schema: test_schema schema: test_schema
sslmode: require sslmode: require
rootCaFilePath: "/etc/.redis/YandexInternalRootCA.crt" rootCaFilePath: "/etc/.postgres/YandexInternalRootCA.crt"

View File

@@ -1,25 +0,0 @@
name: Deploy Production
on:
push:
branches: [master, release]
pull_request:
branches: [master, release]
jobs:
deploy_to_staging:
name: Deploy to Staging
runs-on: ubuntu-22.04
if: ${{ gitea.ref == 'refs/heads/release' }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Manual Approval Step
run: echo "Ручное подтверждение получено. Запуск деплоя..."
- name: Deployment Script (Заглушка)
run: |
echo "Здесь будет скрипт деплоя на staging"
# TODO: Реальный скрипт деплоя
echo "Симуляция деплоя..."

View File

@@ -28,8 +28,8 @@ ARG CONFIG_FILE_PATH
RUN apk add --no-cache ca-certificates tzdata RUN apk add --no-cache ca-certificates tzdata
COPY --from=certs /YandexInternalRootCA.crt /root/.redis/YandexInternalRootCA.crt COPY --from=certs /YandexInternalRootCA.crt /etc/.redis/YandexInternalRootCA.crt
COPY --from=certs /YandexInternalRootCA.crt /root/.postgres/YandexInternalRootCA.crt COPY --from=certs /YandexInternalRootCA.crt /etc/.postgres/YandexInternalRootCA.crt
COPY ${CONFIG_FILE_PATH} /config.yaml COPY ${CONFIG_FILE_PATH} /config.yaml
COPY --from=builder /app/main /main COPY --from=builder /app/main /main

View File

@@ -4,9 +4,8 @@ services:
molva-api-gateway: molva-api-gateway:
image: molvaapp/test_deploy:${VERSION} image: molvaapp/test_deploy:${VERSION}
ports: ports:
- target: 8000 - "8001:8000"
published: 8001 - "[::]:8001:8000"
protocol: tcp
environment: environment:
APP_VERSION: ${APP_VERSION} APP_VERSION: ${APP_VERSION}
APP_COMMIT: ${APP_COMMIT} APP_COMMIT: ${APP_COMMIT}