We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9104607 commit 7d923eaCopy full SHA for 7d923ea
1 file changed
tests/image-override-file.bats
@@ -36,6 +36,23 @@ EOF
36
assert_output "$myservice_override_file2"
37
}
38
39
+@test "Build a docker-compose file with target" {
40
+ myservice_override_file3=$(cat <<-EOF
41
+version: '3.2'
42
+services:
43
+ myservice:
44
+ image: newimage:1.0.0
45
+ build:
46
+ target: build
47
+EOF
48
+ )
49
+
50
+ run build_image_override_file_with_version "3.2" "myservice" "newimage:1.0.0" "build" 0
51
52
+ assert_success
53
+ assert_output "$myservice_override_file3"
54
+}
55
56
@test "Build a docker-compose file with cache-from" {
57
myservice_override_file3=$(cat <<-EOF
58
version: '3.2'
0 commit comments