This repository has been archived by the owner on Dec 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-bake.testing.hcl
56 lines (50 loc) · 1.71 KB
/
docker-bake.testing.hcl
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
46
47
48
49
50
51
52
53
54
55
56
# If you change any values in here, make sure to make the
# corresponding changes, if any, to .buildkite/plugin.verify.yml,
# .buildkite/plugin.merge.build-container.yml and
# .buildkite/scripts/verify_promotion.sh
variable "BUILDKITE_BUILD_ID" {
# Containers will use the Build ID as a unique tag
default = "not-running-in-buildkite"
}
# Both images we're going to build are basically the same; they just
# have different tags. As such, we can define a base image for them to
# inherit. You should not build this target by itself.
target "base" {
context = "."
dockerfile = "Dockerfile.testing"
args = {
"BUILDKITE_BUILD_ID" = "${BUILDKITE_BUILD_ID}"
}
}
# Use this image in the verify pipeline for testing the plugin's
# "move" semantics.
target "verify-move-image" {
inherits = ["base"]
tags = [
"docker.cloudsmith.io/grapl/testing-stage1/cloudsmith-buildkite-plugin-verify-move-test:${BUILDKITE_BUILD_ID}"
]
}
# Use this image in the merge pipeline for testing the plugin's "move"
# semantics..
target "merge-move-image" {
inherits = ["base"]
tags = [
"docker.cloudsmith.io/grapl/testing-stage1/cloudsmith-buildkite-plugin-merge-move-test:${BUILDKITE_BUILD_ID}"
]
}
# Use this image in the verify pipeline for testing the plugin's
# "copy" semantics.
target "verify-copy-image" {
inherits = ["base"]
tags = [
"docker.cloudsmith.io/grapl/testing-stage1/cloudsmith-buildkite-plugin-verify-copy-test:${BUILDKITE_BUILD_ID}"
]
}
# Use this image in the merge pipeline for testing the plugin's "copy"
# semantics..
target "merge-copy-image" {
inherits = ["base"]
tags = [
"docker.cloudsmith.io/grapl/testing-stage1/cloudsmith-buildkite-plugin-merge-copy-test:${BUILDKITE_BUILD_ID}"
]
}