These actions allow you to safely deploy database schema changes to your databases using Redgate Flyway. Supports 50+ databases including PostgreSQL, MySQL, SQL Server, and Oracle.
| Action | Description |
|---|---|
migrations/deploy |
Deploy pending migrations against target database |
name: Deploy to production
on:
push:
branches: [main]
jobs:
automated-deploy:
runs-on: ubuntu-latest
environment: production
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Flyway
uses: red-gate/setup-flyway@v3
with:
edition: enterprise
i-agree-to-the-eula: true
email: "${{ secrets.FLYWAY_EMAIL }}"
token: "${{ secrets.FLYWAY_TOKEN }}"
- name: Run migrations deployment
uses: red-gate/flyway-actions/migrations/deploy@v1
with:
target-environment: production
target-user: "${{ secrets.FLYWAY_USER }}"
target-password: "${{ secrets.FLYWAY_PASSWORD }}"
working-directory: my-flyway-projectname: Deploy to production
on:
push:
branches: [main]
jobs:
automated-deploy:
runs-on: ubuntu-latest
environment: production
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Flyway
uses: red-gate/setup-flyway@v3
with:
edition: community
i-agree-to-the-eula: true
- name: Run migrations deployment
uses: red-gate/flyway-actions/migrations/deploy@v1
with:
target-environment: production
target-user: "${{ secrets.FLYWAY_USER }}"
target-password: "${{ secrets.FLYWAY_PASSWORD }}"
working-directory: my-flyway-projectThe scripts and documentation in this project are released under the MIT License.
Contributions are welcome! See Code of Conduct
See Breaking Changes for a list of breaking changes.
Find a security issue? Please review our Security Policy.
For support, please see the Support Policy.