Skip to content

GitHub Action for Azure MySQL

Compare
Choose a tag to compare
@N-Usha N-Usha released this 22 Sep 06:04
· 45 commits to master since this release
d27d971

Azure MySQL Action for GitHub enables you to automate your action workflow to deploy updates to Azure Database for MySQL server.

The action uses Connection String for authentication and SQL scripts to deploy to your MySQL database.

Sample workflow to deploy to an Azure database for MySQL server

# .github/workflows/mysql-deploy.yml
on: [push]

jobs:
  build:
    runs-on: windows-latest
    steps:
    - uses: actions/checkout@v1
    - uses: azure/login@v1
      with:
        creds: ${{ secrets.AZURE_CREDENTIALS }}
    - uses: azure/mysql@v1
      with:
        server-name: REPLACE_THIS_WITH_YOUR_MYSQL_SERVER_NAME
        connection-string: ${{ secrets.AZURE_MYSQL_CONNECTION_STRING }}
        sql-file: './sqlFile.sql'

Released under MIT License