-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.space.kts
41 lines (37 loc) · 1.4 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
/**
* 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 apk") {
startOn {
gitPush {
enabled = true
repository = "master"
}
}
container(displayName = "ionic-capacitor", image = "github.com/robingenz/docker-ionic-capacitor") {
// env["GOOGLE_SA_KEY"] = Secrets("google_sa_key")
// env["KEY_STORE"] = Secrets("key_store")
// env["KEY_STORE_PASSWORD"] = Secrets("key_store_password")
// env["KEY_PASSWORD"] = Secrets("key_password")
// env["KEY_ALIAS"] = Params("key_alias")
// env["REGISTRY"] = "https://npm.pkg.jetbrains.space/mycompany/p/projectkey/mynpm"
// echo Get private signing key...
// echo ${'$'}KEY_STORE > upload_key.hex
// xxd -plain -revert upload_key.hex upload_key.jks
// echo Get Google service account key...
// echo ${'$'}GOOGLE_SA_KEY > google_sa_key.hex
// xxd -plain -revert google_sa_key.hex google_sa_key.json
// echo Build and pulbish AAB...
// ./gradlew publishBundle
shellScript {
content = """
echo install ionic/cli
npm install -g @ionic/cli@6.18.1
echo Install npm dependencies...
npm ci
"""
}
}
}