diff --git a/.github/workflows/build_frontend.yml b/.github/workflows/build_frontend.yml index a3c32c220..468c1f71f 100644 --- a/.github/workflows/build_frontend.yml +++ b/.github/workflows/build_frontend.yml @@ -8,7 +8,7 @@ on: type: string jobs: - build_staging: + build_frontend: runs-on: ubuntu-latest steps: - name: Checkout Code diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 000000000..e0a9b16ee --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,19 @@ +name: Build and deploy production + +on: + release: + types: [published] +jobs: + build-production: + uses: griffithlab/civic-v2/.github/workflows/build_frontend.yml@main + with: + branch: release + deploy-staging: + uses: griffithlab/civic-v2/.github/workflows/deploy.yml@main + needs: build-production + with: + environment: production + secrets: + SSH_HOST: ${{ secrets.CIVIC_V2_PRODUCTION_SSH_HOST }} + SSH_KEY: ${{ secrets.CIVIC_V2_PRODUCTION_SSH_KEY }} + diff --git a/server/config/database.yml b/server/config/database.yml index 26b973fa7..1aad9fe38 100644 --- a/server/config/database.yml +++ b/server/config/database.yml @@ -18,7 +18,7 @@ test: production: <<: *default - pool: 20 + pool: 40 username: <%= Rails.application.credentials.dig(:database, :username) %> password: <%= Rails.application.credentials.dig(:database, :password) %>