Skip to content

Commit

Permalink
mysql 설정 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminuj authored Sep 12, 2024
1 parent 268f6b6 commit 02606d9
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,6 @@ jobs:

runs-on: ubuntu-latest

services:
mysql:
image: mysql:8.0.30
env:
MYSQL_ROOT_PASSWORD: root!
MYSQL_DATABASE: testdb
MYSQL_USER: admin
MYSQL_PASSWORD: admin!
ports:
- 3306:3306
options: >-
--health-cmd="mysqladmin ping"
--health-interval=10s
--health-timeout=5s
--health-retries=3
steps:
- uses: actions/checkout@v4

Expand All @@ -39,6 +23,18 @@ jobs:
java-version: '11'
distribution: 'temurin'

- uses: samin/mysql-action@v1
with:
host port: 3306 # Optional, default value is 3306. The port of host
container port: 3306 # 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: 'testdb' # Optional, default value is "test". The specified database which will be create
mysql root password: 'root!' # Required if "mysql user" is empty, default is empty. The root superuser password
mysql user: 'admin' # 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: 'admin!' # Required if "mysql user" exists. The password for the "mysql user"

# Configure Gradle for optimal use in GitHub Actions, including caching of downloaded dependencies.
# See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md
- name: Setup Gradle
Expand Down

0 comments on commit 02606d9

Please sign in to comment.