-
Notifications
You must be signed in to change notification settings - Fork 1
/
.space.kts
45 lines (36 loc) · 1.02 KB
/
.space.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
job("Release base Docker") {
startOn {
gitPush { enabled = false }
}
val version = "py3.11.4-java20.0.2.9"
val type = "hyperstyle-analysis-prod-base"
kaniko {
build {
dockerfile = "./Dockerfile.base"
}
push("registry.jetbrains.team/p/code-quality-for-online-learning-platforms/hyperstyle-analysis-prod/${type}") {
tags(version)
}
}
}
job("Release Docker") {
startOn {
gitPush { enabled = false }
}
val type = "hyperstyle-analysis-prod"
kaniko {
beforeBuildScript {
content = """
export DOCKER_TAG=${'$'}(grep -m 1 version pyproject.toml | tr -s ' ' | tr -d '"' | tr -d "'" | cut -d ' ' -f 3)
"""
}
build {
dockerfile = "./Dockerfile"
}
push("registry.jetbrains.team/p/code-quality-for-online-learning-platforms/hyperstyle-analysis-prod/${type}") {
tags {
+"\$DOCKER_TAG"
}
}
}
}