multiplatform build

This commit is contained in:
boxi committed 2023-03-08 18:50:36 +01:00
1 parent 6e6e452eb1
commit 5501e98941
1 file changed
+11 -29
+11 -29
View File
@@ -1,34 +1,16 @@
job("Docker") { job("Docker") {
host("Build and push a Docker image") { host("Build and push a Docker image") {
dockerBuildPush { shellScript {
// by default, the step runs not only 'docker build' but also 'docker push' content = """
// to disable pushing, add the following line: export DOCKER_CLI_EXPERIMENTAL=enabled;
// push = false docker buildx create --name boxitapache || true 2>/dev/null;
docker buildx use boxitapache;
// path to Docker context (by default, context is working dir) docker buildx build \
// context = "backend" --platform linux/arm64,linux/amd64 \
--tag boxi.registry.jetbrains.space/p/boxit/containers/boxit-apache-oidc:0.0.${"$"}JB_SPACE_EXECUTION_NUMBER \
// path to Dockerfile relative to the project root --push \
// if 'file' is not specified, Docker will look for it in 'context'/Dockerfile .;
//file = "docker/config/Dockerfile" """.trimIndent()
// build-time variables
//args["HTTP_PROXY"] = "http://10.20.30.2:1234"
// image labels
//labels["vendor"] = "mycompany"
// 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 {
// use current job run number as a tag - '0.0.run_number'
+"boxi.registry.jetbrains.space/p/boxit/containers/boxit-apache-oidc:0.0.${"$"}JB_SPACE_EXECUTION_NUMBER"
}
} }
} }
} }
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.