Skip to content

Commit

Permalink
Update document
Browse files Browse the repository at this point in the history
  • Loading branch information
mirromutth committed Sep 6, 2019
1 parent 73a5ef7 commit de1fba8
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,17 @@ This [GitHub Action](https://github.com/features/actions) sets up a MySQL databa

```yaml
steps:
- uses: mirromutth/mysql-action@v1
- uses: mirromutth/mysql-action@v1.1
with:
mysql password: ${{ secrets.databasePassword }} # Required, the password of the superuser for the specified database
mysql user: 'developer' # Optional, default value is "test", the superuser for the specified database. Of course you can use secrets, too
mysql version: '8.0' # Optional, default value is "latest", the version of the MySQL in Docker
mysql database: 'some_test' # Optional, default value is "test", the specified database which will be create
host port: 3800 # Optional, default value is 3306. The port of host
container port: 3307 # Optional, default value is 3306. The port of container
character set server: 'utf8' # Optional, default value is 'utf8mb4'. The '--character-set-server' option for mysqld
collation server: 'utf8_general_ci' # Optional, default value is 'utf8mb4_general_ci'. The '--collation-server' option for mysqld
mysql version: '8.0' # Optional, default value is "latest". The version of the MySQL
mysql database: 'some_test' # Optional, default value is "test". The specified database which will be create
mysql root password: ${{ secrets.RootPassword }} # Required if "mysql user" is empty, default is empty. The root superuser password
mysql user: 'developer' # Required if "mysql root password" is empty, default is empty. The superuser for the specified database. Of course you can use secrets, too
mysql password: ${{ secrets.DatabasePassword }} # Required if "mysql user" exists. The password for the "mysql user"
```
See [Docker Hub](https://hub.docker.com/_/mysql) for available versions.
Expand Down

0 comments on commit de1fba8

Please sign in to comment.