17 lines
597 B
Kotlin
17 lines
597 B
Kotlin
job("Docker") {
|
|
host("Build and push a Docker image") {
|
|
shellScript {
|
|
content = """
|
|
export DOCKER_CLI_EXPERIMENTAL=enabled;
|
|
docker buildx create --name boxitapache || true 2>/dev/null;
|
|
docker buildx use boxitapache;
|
|
docker buildx build \
|
|
--platform linux/arm64,linux/amd64 \
|
|
--tag boxi.registry.jetbrains.space/p/boxit/containers/boxit-apache-oidc:0.0.${"$"}JB_SPACE_EXECUTION_NUMBER \
|
|
--push \
|
|
.;
|
|
""".trimIndent()
|
|
}
|
|
}
|
|
}
|