Merge branch 'feature/33' into feature/38

This commit is contained in:
Hanbin Lee
2023-03-12 19:23:27 +09:00
4 changed files with 23 additions and 11 deletions

View File

@@ -9,17 +9,17 @@ pipeline {
sh 'printenv'
FLYWAY_CONFIG = '/home/ec2-user/flyway/flyway.conf'
MIGRATION_SCRIPT = './script/db_migration.sh'
}
}
}
stage('DB Migrate') {
steps {
sh """
chmod 755 ${MIGRATION_SCRIPT}
/bin/bash ${MIGRATION_SCRIPT} ${FLYWAY_CONFIG}
"""
flywayrunner installationName: 'flywaytool-jenkins',
flywayCommand: 'info migrate validate',
commandLineArgs: "-configFiles=${FLYWAY_CONFIG}",
credentialsId: 'ecb29499-7272-4e8b-b3ab-a7a3ab7eafab',
locations: "filesystem:${WORKSPACE}/db/migration"
}
}

View File

@@ -6,10 +6,18 @@
<br>
## Specification
- java 17
- kotlin 1.6.21
- Spring Boot 2.7.0
- MySQL 8.0.21
- Lang
- java 17
- kotlin 1.6.21
- Framework
- Spring Boot 2.7.0
- DB
- MySQL 8.0.21
- Flyway(migration)
- CI/CD
- Jenkins
- Cloud Server
- AWS Lightsail(Amazon Linux2)
<br>

View File

@@ -2,4 +2,9 @@ flyway.url=jdbc:mysql://localhost:3306/dongne?autoreconnect=true&characterEncodi
flyway.user=root
flyway.password=beaniejoy
flyway.driver=com.mysql.cj.jdbc.Driver
flyway.locations=filesystem:db/migration,db/seed
flyway.locations=filesystem:db/migration,db/seed
flyway.baselineOnMigrate=true
flyway.baselineVersion=000
# flyway.ignoreMigrationPatterns=*:pending
flyway.cleanDisabled=false

View File

@@ -8,4 +8,3 @@ echo "================ 2. Flyway Validate ============"
echo "================ 3. Flyway Migrate ============="
./gradlew :db:flywayMigrate -Dconfig=$1