mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-05 06:06:09 +02:00
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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user