This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
dagger/tests/stdlib/docker/pull/pull.cue

28 lines
348 B
CUE
Raw Normal View History

package docker
import (
"dagger.io/dagger/op"
"dagger.io/docker"
)
TestImageFromRegistry: {
image: docker.#Pull & {
from: "index.docker.io/the0only0vasek/alpine-test"
}
verify: #up: [
op.#Load & {
from: image
},
op.#Exec & {
always: true
args: [
"sh", "-c", """
grep -q "test" /test.txt
""",
]
},
]
}