Skip to content

GitHub action to deploy a minimal docker MySql instance

License

Notifications You must be signed in to change notification settings

adore-me/gha-mysql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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