Improve git buildcontext integration test
Build a dockerfile that will copy the LICENSE from the kaniko github repository into the image to make sure the git buildcontext works as expected.
This commit is contained in:
parent
2fc8a7f4bc
commit
317d1b7017
|
|
@ -0,0 +1,2 @@
|
|||
FROM scratch
|
||||
COPY LICENSE ./LICENSE
|
||||
|
|
@ -237,7 +237,7 @@ func TestRun(t *testing.T) {
|
|||
|
||||
func TestGitBuildcontext(t *testing.T) {
|
||||
repo := "github.com/GoogleContainerTools/kaniko"
|
||||
dockerfile := "integration/dockerfiles/Dockerfile_test_run_2"
|
||||
dockerfile := "integration/dockerfiles/Dockerfile_git_buildcontext"
|
||||
|
||||
// Build with docker
|
||||
dockerImage := GetDockerImage(config.imageRepo, "Dockerfile_test_git")
|
||||
|
|
|
|||
Loading…
Reference in New Issue