Skip to content
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.

Commit

Permalink
dependent on deployment added. (#9)
Browse files Browse the repository at this point in the history
* dependent on deployment added.

* Migration to migration or else the folder is not found.
  • Loading branch information
cameron-zwane authored Mar 11, 2024
1 parent f897e5c commit 9b70264
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/flyway-migration.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
name: Migrate Database
on:
workflow_dispatch:
push:
branches:
- main
paths:
- migrations
workflow_run:
workflows: ["Deploy Terraform"]
types:
- completed
jobs:
migrate:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
env:
FLYWAY_URL: jdbc:postgresql://${{ secrets.AWS_RDS_ENDPOINT }}:${{ secrets.DB_PORT }}/BeantasticDB
FLYWAY_USER: ${{ secrets.DB_USERNAME }}
FLYWAY_PASSWORD: ${{ secrets.DB_PASSWORD }}
FLYWAY_SCHEMA: flyway
FLYWAY_LOCATION: filesystem:Migrations
FLYWAY_LOCATION: filesystem:migrations
defaults:
run:
shell: bash
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/terraform-apply.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ on:
push:
branches:
- main
paths:
- infrastructure

permissions:
id-token: write
Expand Down

0 comments on commit 9b70264

Please sign in to comment.