Enable merge queue (#20348)

This commit is contained in:
Mac Siri 2023-11-14 08:32:46 -05:00 committed by GitHub
parent c62b612ee7
commit 5f89bc33ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 38 additions and 30 deletions

32
.github/workflows/cd.yml vendored Normal file
View file

@ -0,0 +1,32 @@
name: CD
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
concurrency: ${{ matrix.environment }}
environment: ${{ matrix.environment }}
strategy:
matrix:
environment: [ production, staging ]
steps:
- uses: actions/checkout@v4
- uses: akhileshns/heroku-deploy@v3.12.12
with:
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: ${{ secrets.HEROKU_APP_NAME }}
heroku_email: ${{ secrets.HEROKU_EMAIL }}
- uses: honeybadger-io/github-notify-deploy-action@v1
with:
api_key: ${{ secrets.HONEYBADGER_API_KEY_RUBY }}
if: matrix.environment == 'production'
- uses: honeybadger-io/github-notify-deploy-action@v1
with:
api_key: ${{ secrets.HONEYBADGER_API_KEY_JAVASCRIPT }}
if: matrix.environment == 'production'

View file

@ -1,10 +1,10 @@
name: CI/CD
name: CI
on:
push:
pull_request:
branches:
- main
pull_request:
merge_group:
branches:
- main
concurrency:
@ -464,30 +464,3 @@ jobs:
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}
deploy:
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
needs: [CI-status-report]
concurrency: ${{ matrix.environment }}
environment: ${{ matrix.environment }}
strategy:
matrix:
environment: [ production, staging ]
steps:
- uses: actions/checkout@v4
- uses: akhileshns/heroku-deploy@v3.12.12
with:
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: ${{ secrets.HEROKU_APP_NAME }}
heroku_email: ${{ secrets.HEROKU_EMAIL }}
- uses: honeybadger-io/github-notify-deploy-action@v1
with:
api_key: ${{ secrets.HONEYBADGER_API_KEY_RUBY }}
if: matrix.environment == 'production'
- uses: honeybadger-io/github-notify-deploy-action@v1
with:
api_key: ${{ secrets.HONEYBADGER_API_KEY_JAVASCRIPT }}
if: matrix.environment == 'production'

View file

@ -4,6 +4,9 @@ on:
types: [created]
pull_request_target:
types: [opened,closed,synchronize]
merge_group:
branches:
- main
permissions:
actions: write