Skip to content

Commit a717b70

Browse files
crazy-maxiQQBot
authored andcommitted
create integration-tests bake target
Signed-off-by: CrazyMax <[email protected]>
1 parent 86ba834 commit a717b70

File tree

2 files changed

+40
-7
lines changed

2 files changed

+40
-7
lines changed

docker-bake.hcl

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,30 @@ variable "BUILDKITD_TAGS" {
1414
default = null
1515
}
1616

17+
variable "HTTP_PROXY" {
18+
default = null
19+
}
20+
21+
variable "HTTPS_PROXY" {
22+
default = null
23+
}
24+
25+
variable "NO_PROXY" {
26+
default = null
27+
}
28+
29+
variable "GOBUILDFLAGS" {
30+
default = null
31+
}
32+
33+
variable "VERIFYFLAGS" {
34+
default = null
35+
}
36+
37+
variable "CGO_ENABLED" {
38+
default = null
39+
}
40+
1741
# Defines the output folder
1842
variable "DESTDIR" {
1943
default = ""
@@ -28,6 +52,13 @@ target "_common" {
2852
ALPINE_VERSION = ALPINE_VERSION
2953
GO_VERSION = GO_VERSION
3054
NODE_VERSION = NODE_VERSION
55+
BUILDKITD_TAGS = BUILDKITD_TAGS
56+
HTTP_PROXY = HTTP_PROXY
57+
HTTPS_PROXY = HTTPS_PROXY
58+
NO_PROXY = NO_PROXY
59+
GOBUILDFLAGS = GOBUILDFLAGS
60+
VERIFYFLAGS = VERIFYFLAGS
61+
CGO_ENABLED = CGO_ENABLED
3162
BUILDKIT_CONTEXT_KEEP_GIT_DIR = 1
3263
}
3364
}
@@ -39,9 +70,6 @@ group "default" {
3970
target "binaries" {
4071
inherits = ["_common"]
4172
target = "binaries"
42-
args = {
43-
BUILDKITD_TAGS = BUILDKITD_TAGS
44-
}
4573
output = [bindir("build")]
4674
}
4775

@@ -74,6 +102,11 @@ target "integration-tests-base" {
74102
output = ["type=cacheonly"]
75103
}
76104

105+
target "integration-tests" {
106+
inherits = ["integration-tests-base"]
107+
target = "integration-tests"
108+
}
109+
77110
group "validate" {
78111
targets = ["lint", "validate-vendor", "validate-doctoc", "validate-generated-files", "validate-shfmt", "validate-docs"]
79112
}

hack/test

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@
44
set -eu -o pipefail
55

66
: "${GO_VERSION=}"
7+
: "${BUILDKITD_TAGS=}"
78
: "${HTTP_PROXY=}"
89
: "${HTTPS_PROXY=}"
910
: "${NO_PROXY=}"
11+
: "${GOBUILDFLAGS=}"
12+
: "${VERIFYFLAGS=}"
13+
: "${CGO_ENABLED=}"
1014

1115
: "${TEST_IMAGE_BUILD=1}"
1216
: "${TEST_IMAGE_ID=buildkit-tests}"
@@ -18,12 +22,8 @@ set -eu -o pipefail
1822
: "${TEST_REPORT_SUFFIX=}"
1923
: "${TEST_KEEP_CACHE=}"
2024

21-
: "${GOBUILDFLAGS=}"
22-
: "${VERIFYFLAGS=}"
23-
: "${CGO_ENABLED=}"
2425
: "${DOCKERFILE_RELEASES=}"
2526
: "${BUILDKIT_WORKER_RANDOM=}"
26-
: "${BUILDKITD_TAGS=}"
2727

2828
if [ "$TEST_DOCKERD" == "1" ]; then
2929
if [ ! -f "$TEST_DOCKERD_BINARY" ]; then

0 commit comments

Comments
 (0)