Move push and pull tests plans to docker subpackages
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
This commit is contained in:
33
stdlib/docker/tests/push-invalid-creds/push.cue
Normal file
33
stdlib/docker/tests/push-invalid-creds/push.cue
Normal file
@@ -0,0 +1,33 @@
|
||||
package docker
|
||||
|
||||
import (
|
||||
"alpha.dagger.io/random"
|
||||
)
|
||||
|
||||
TestRegistry: {
|
||||
username: string @dagger(input)
|
||||
secret: string @dagger(input)
|
||||
}
|
||||
|
||||
TestPush: {
|
||||
tag: random.#String & {seed: "docker push and pull should fail"}
|
||||
|
||||
name: "daggerio/ci-test:\(tag.out)"
|
||||
|
||||
image: #ImageFromDockerfile & {
|
||||
dockerfile: """
|
||||
FROM alpine
|
||||
RUN echo "test" > /test.txt
|
||||
"""
|
||||
context: ""
|
||||
}
|
||||
|
||||
push: #Push & {
|
||||
"name": name
|
||||
source: image
|
||||
auth: {
|
||||
username: TestRegistry.username
|
||||
secret: TestRegistry.secret
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user