-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
.space.kts
36 lines (30 loc) · 1.2 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
/**
* JetBrains Space Automation
* This Kotlin script file lets you automate build activities
* For more info, see https://www.jetbrains.com/help/space/automation.html
*/
job("Build Docker image") {
startOn {
gitPush { enabled = false }
}
host("Build Docker image") {
dockerBuildPush {
// Mapping Dockerfile build-time variables
// The leading underscore provides compatibility towards Google Cloud Build.
args["_CLI_TOOLS_VERSION"] = "{{ project:CLI_TOOLS_VERSION }}"
args["_ANDROID_SDK_PACKAGES"] = "{{ project:ANDROID_SDK_PACKAGES }}"
args["_GRADLE_VERSION"] = "{{ project:GRADLE_VERSION }}"
// image labels
labels["vendor"] = "syslogic"
// to add a raw list of additional build arguments, use
// extraArgsForBuildCommand = listOf("...")
// to add a raw list of additional push arguments, use
// extraArgsForPushCommand = listOf("...")
// image tags
tags {
+"{{ project:DOCKER_IMAGE }}:0.${"$"}JB_SPACE_EXECUTION_NUMBER"
+"{{ project:DOCKER_IMAGE }}:lts"
}
}
}
}