CMD integration test
This commit is contained in:
parent
5da78632a1
commit
773d2b06fd
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue