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
17
.dagger/env/dev/main.cue
vendored
17
.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 & {
|
||||
file.#Read & {
|
||||
from: ctr
|
||||
},
|
||||
op.#Exec & {
|
||||
args: ["ls", "-l", "/"]
|
||||
},
|
||||
op.#Export & {
|
||||
source: "/test.log"
|
||||
format: "string"
|
||||
}
|
||||
]
|
||||
filename: "/test.log"
|
||||
}
|
||||
}.contents
|
||||
|
||||
ctr: docker.#Container & {
|
||||
image: docker.#ImageFromRegistry & {
|
||||
|
Reference in New Issue
Block a user