Added integration test for multi level argument
Added integration test to check that following pattern is supported
ARG TAG=1.2
ARG IMAGE=my-image:${TAG}
FROM ${IMAGE}
...
This commit is contained in:
parent
e0f93578b6
commit
3462b7585b
|
|
@ -0,0 +1,3 @@
|
|||
ARG A=3.9
|
||||
ARG B=alpine:${A}
|
||||
FROM ${B}
|
||||
|
|
@ -306,7 +306,7 @@ func TestGitBuildcontextSubPath(t *testing.T) {
|
|||
|
||||
func TestBuildViaRegistryMirror(t *testing.T) {
|
||||
repo := getGitRepo()
|
||||
dockerfile := "integration/dockerfiles/Dockerfile_registry_mirror"
|
||||
dockerfile := fmt.Sprintf("%s/%s/Dockerfile_registry_mirror", integrationPath, dockerfilesPath)
|
||||
|
||||
// Build with docker
|
||||
dockerImage := GetDockerImage(config.imageRepo, "Dockerfile_registry_mirror")
|
||||
|
|
@ -345,7 +345,7 @@ func TestBuildViaRegistryMirror(t *testing.T) {
|
|||
|
||||
func TestBuildWithLabels(t *testing.T) {
|
||||
repo := getGitRepo()
|
||||
dockerfile := "integration/dockerfiles/Dockerfile_test_label"
|
||||
dockerfile := fmt.Sprintf("%s/%s/Dockerfile_test_label", integrationPath, dockerfilesPath)
|
||||
|
||||
testLabel := "mylabel=myvalue"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue