File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
dp-inntekt-api/src/main/kotlin/no/nav/dagpenger/inntekt/db Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -19,13 +19,22 @@ jobs:
19
19
distribution : temurin
20
20
java-version : 17
21
21
22
+
22
23
24
+ id : build
25
+ env :
26
+ DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS : compileClasspath|runtimeClasspath
27
+ ORG_GRADLE_PROJECT_githubUser : x-access-token
28
+ ORG_GRADLE_PROJECT_githubPassword : ${{ secrets.GITHUB_TOKEN }}
23
29
with :
24
- arguments : build
30
+ dependency-graph : generate-and-submit
31
+ arguments : --configuration-cache build
32
+
25
33
- uses : nais/docker-build-push@v0
26
34
name : docker-build-push
27
35
id : docker-build-push
28
36
with :
37
+ byosbom : dependency-graph-reports/build_and_deploy-build.json
29
38
team : teamdagpenger
30
39
tag : latest
31
40
push_image : true # optional, default true
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ fun migrate(config: InntektApiConfig): Int {
17
17
locations = config.database.flywayLocations,
18
18
)
19
19
}
20
+
20
21
else ->
21
22
hikariDataSourceWithVaultIntegration(config, Role .ADMIN ).use {
22
23
migrate(
@@ -59,7 +60,9 @@ fun migrate(
59
60
dataSource : HikariDataSource ,
60
61
initSql : String = "",
61
62
locations : List <String > = listOf("db/migration"),
62
- ): Int = Flyway .configure().locations(* locations.toTypedArray()).dataSource(dataSource).initSql(initSql).load().migrate().migrations.size
63
+ ): Int =
64
+ Flyway .configure().validateMigrationNaming(true ).locations(* locations.toTypedArray()).dataSource(dataSource)
65
+ .initSql(initSql).load().migrate().migrations.size
63
66
64
67
fun clean (dataSource : HikariDataSource ) =
65
68
Flyway .configure().cleanDisabled(
You can’t perform that action at this time.
0 commit comments