From ac3beeb1d3d470a202fe0512b63c882955970bfa Mon Sep 17 00:00:00 2001 From: Alex Shevchuk Date: Tue, 19 Aug 2025 02:17:23 +0300 Subject: [PATCH] 29 --- .build/config/staging.yaml | 22 ++++++++++++++++++++++ .gitea/workflows/deploy_staging.yaml | 11 ++++++++++- 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/.build/config/staging.yaml b/.build/config/staging.yaml index e69de29..05055c3 100644 --- a/.build/config/staging.yaml +++ b/.build/config/staging.yaml @@ -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: "/root/.redis/YandexInternalRootCA.crt" + +s3Storage: + bucket: "molva-staging" + defaultLinkTtl: 1h + +database: + schema: test_schema + sslmode: require + rootCaFilePath: "/root/.redis/YandexInternalRootCA.crt" diff --git a/.gitea/workflows/deploy_staging.yaml b/.gitea/workflows/deploy_staging.yaml index 00292b8..1599f15 100644 --- a/.gitea/workflows/deploy_staging.yaml +++ b/.gitea/workflows/deploy_staging.yaml @@ -59,6 +59,15 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + - name: Verify required files exist + run: | + echo "Checking for config file..." + if [ ! -f "./build/config/staging.yaml" ]; then + echo "Error: staging.yaml not found!" + exit 1 + fi + echo "All required files exist" + - name: Extract Git metadata id: git-metadata run: | @@ -186,4 +195,4 @@ jobs: - name: Post-deploy run: | echo "Deployment to ${{ inputs.environment }} completed." - echo "Version deployed: ${{ inputs.VERSION }}" + echo "Version deployed: ${{ inputs.version }}"