Test fix 3 for docker compose updater #11
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Migrate and Deploy | |
concurrency: | |
group: deployment | |
cancel-in-progress: true | |
on: | |
workflow_dispatch: | |
# push: | |
# branches: | |
# - main | |
pull_request: | |
types: [ closed ] | |
branches: | |
- main | |
jobs: | |
migrate-deploy-staging: | |
name: Run Migration and Deploy to staging | |
runs-on: ubuntu-latest | |
environment: | |
name: staging | |
url: "https://${HEROKU_APP_ID}.herokuapp.com" | |
steps: | |
- uses: actions/checkout@v3 | |
- id: typeorm | |
uses: ./.github/actions/typeorm | |
with: | |
command: migration:run | |
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }} | |
APP_ID: ${{ secrets.HEROKU_APP_ID }} | |
- uses: akhileshns/[email protected] | |
with: | |
heroku_api_key: ${{ secrets.HEROKU_API_KEY }} | |
heroku_app_name: ${{ secrets.HEROKU_APP_ID }} | |
heroku_email: ${{ secrets.HEROKU_EMAIL }} | |
migrate-deploy-production: | |
needs: migrate-deploy-staging | |
name: Run Migration and Deploy to production | |
runs-on: ubuntu-latest | |
environment: | |
name: production | |
url: "https://${HEROKU_APP_ID}.herokuapp.com" | |
steps: | |
- uses: actions/checkout@v3 | |
- id: typeorm | |
uses: ./.github/actions/typeorm | |
with: | |
command: migration:run | |
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }} | |
APP_ID: ${{ secrets.HEROKU_APP_ID }} | |
- uses: akhileshns/[email protected] | |
with: | |
heroku_api_key: ${{ secrets.HEROKU_API_KEY }} | |
heroku_app_name: ${{ secrets.HEROKU_APP_ID }} | |
heroku_email: ${{ secrets.HEROKU_EMAIL }} |