-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
40b78a0
commit fca369f
Showing
1 changed file
with
20 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,26 @@ on: | |
branches: | ||
- main | ||
jobs: | ||
migrate: | ||
runs-on: ubuntu-latest | ||
env: | ||
DB_PORT: ${{ secrets.LIVRO_LIVRE_DB_PORT }} | ||
DB_HOST: ${{ secrets.LIVRO_LIVRE_DB_HOST }} | ||
DB_USER: ${{ secrets.LIVRO_LIVRE_DB_USER }} | ||
DB_PASSWORD: ${{ secrets.LIVRO_LIVRE_DB_PASSWORD }} | ||
DB_NAME: ${{ secrets.LIVRO_LIVRE_DB_NAME }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Install dependencies | ||
run: | | ||
npm install | ||
- name: Run migrations | ||
run: | | ||
npm run migration:run | ||
build: | ||
needs: migrate | ||
runs-on: ubuntu-latest # Setup an environment to run the action | ||
steps: | ||
- uses: actions/checkout@v2 # This actions copy the repository on the environment | ||
|
@@ -16,4 +35,4 @@ jobs: | |
heroku_api_key: ${{secrets.LIVRO_LIVRE_HEROKU_API_KEY}} #The Heroku api key we stored on our repo secret | ||
heroku_app_name: "livro-livre-users" #The name of your heroku app - Must be unique in Heroku | ||
heroku_email: "[email protected]" #Your heroku yuser name | ||
usedocker: true | ||
usedocker: true |