Compare commits
4 Commits
v1.2.42075
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
62ce86f1c4 | ||
|
|
ce7aecf8be | ||
|
|
f64936e0f3 | ||
|
|
a11e3b3a82 |
@@ -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"
|
||||
|
||||
@@ -19,4 +19,4 @@ s3Storage:
|
||||
database:
|
||||
schema: test_schema
|
||||
sslmode: require
|
||||
rootCaFilePath: "/etc/.redis/YandexInternalRootCA.crt"
|
||||
rootCaFilePath: "/etc/.postgres/YandexInternalRootCA.crt"
|
||||
|
||||
@@ -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 "Симуляция деплоя..."
|
||||
@@ -28,8 +28,8 @@ ARG CONFIG_FILE_PATH
|
||||
|
||||
RUN apk add --no-cache ca-certificates tzdata
|
||||
|
||||
COPY --from=certs /YandexInternalRootCA.crt /root/.redis/YandexInternalRootCA.crt
|
||||
COPY --from=certs /YandexInternalRootCA.crt /root/.postgres/YandexInternalRootCA.crt
|
||||
COPY --from=certs /YandexInternalRootCA.crt /etc/.redis/YandexInternalRootCA.crt
|
||||
COPY --from=certs /YandexInternalRootCA.crt /etc/.postgres/YandexInternalRootCA.crt
|
||||
COPY ${CONFIG_FILE_PATH} /config.yaml
|
||||
|
||||
COPY --from=builder /app/main /main
|
||||
|
||||
@@ -4,9 +4,8 @@ services:
|
||||
molva-api-gateway:
|
||||
image: molvaapp/test_deploy:${VERSION}
|
||||
ports:
|
||||
- target: 8000
|
||||
published: 8001
|
||||
protocol: tcp
|
||||
- "8001:8000"
|
||||
- "[::]:8001:8000"
|
||||
environment:
|
||||
APP_VERSION: ${APP_VERSION}
|
||||
APP_COMMIT: ${APP_COMMIT}
|
||||
|
||||
Reference in New Issue
Block a user