/gha-mysql

GitHub action to deploy a minimal docker MySql instance

Primary LanguageShellGNU General Public License v3.0GPL-3.0

gha-mysql

Description

Run composer install with custom PHP image.

Inputs

Key Required Default Description
version true 5.7 MySql version to use.
root-password true secret Root password.
user true adoreme Additional user.
password true secret Additional user's password.
db-name true adoreme Database name.

Outputs

Key Value
container-ip IP address of the container

Example of step configuration and usage:

steps:
  - name: 'Start MySql'
    uses: adore-me/mysql-action@master
    with:
      version: 5.7
      root-password: ${{ secrets.MYSQL_ROOT_PASSWORD }}
      user: ${{ secrets.MYSQL_USER }}
      password: ${{ secrets.MYSQL_PASSWORD }}
      db-name: ${{ secrets.MYSQL_DB_NAME }}

You can skip the with section if you are ok with the default values.

steps:
  - name: 'Run Composer Install'
    uses: adore-me/mysql-action@master