Develop dagger with dagger: use file package
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
This commit is contained in:
parent
161e67de9a
commit
2804feb004
21
.dagger/env/dev/main.cue
vendored
21
.dagger/env/dev/main.cue
vendored
@ -3,7 +3,7 @@ package main
|
||||
|
||||
import (
|
||||
"dagger.io/dagger"
|
||||
"dagger.io/dagger/op"
|
||||
"dagger.io/file"
|
||||
"dagger.io/alpine"
|
||||
"dagger.io/docker"
|
||||
)
|
||||
@ -14,20 +14,11 @@ source: dagger.#Artifact
|
||||
// Build the dagger binaries
|
||||
build: {
|
||||
testLogs: {
|
||||
string
|
||||
#up: [
|
||||
op.#Load & {
|
||||
from: ctr
|
||||
},
|
||||
op.#Exec & {
|
||||
args: ["ls", "-l", "/"]
|
||||
},
|
||||
op.#Export & {
|
||||
source: "/test.log"
|
||||
format: "string"
|
||||
}
|
||||
]
|
||||
}
|
||||
file.#Read & {
|
||||
from: ctr
|
||||
filename: "/test.log"
|
||||
}
|
||||
}.contents
|
||||
|
||||
ctr: docker.#Container & {
|
||||
image: docker.#ImageFromRegistry & {
|
||||
|
Reference in New Issue
Block a user