mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-09 10:17:06 +02:00
CMD integration test
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
FROM gcr.io/distroless/base:latest
|
||||
CMD ["command", "one"]
|
||||
CMD ["command", "two"]
|
||||
CMD echo "hello"
|
||||
@@ -0,0 +1,3 @@
|
||||
schemaVersion: '2.0.0'
|
||||
metadataTest:
|
||||
cmd: ["/bin/sh", "-c", "echo \"hello\""]
|
||||
@@ -65,6 +65,13 @@ var structureTests = []struct {
|
||||
dockerBuildContext: "/workspace/integration_tests/dockerfiles/",
|
||||
structureTestYamlPath: "/workspace/integration_tests/dockerfiles/test_env.yaml",
|
||||
},
|
||||
{
|
||||
description: "test cmd",
|
||||
dockerfilePath: "/workspace/integration_tests/dockerfiles/Dockerfile_test_cmd",
|
||||
repo: "test-cmd",
|
||||
dockerBuildContext: "/workspace/integration_tests/dockerfiles/",
|
||||
structureTestYamlPath: "/workspace/integration_tests/dockerfiles/test_cmd.yaml",
|
||||
},
|
||||
}
|
||||
|
||||
type step struct {
|
||||
|
||||
Reference in New Issue
Block a user