dev env: use dagger.io/io
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
This commit is contained in:
parent
3bb6243768
commit
6199833aaf
22
.dagger/env/dev/main.cue
vendored
22
.dagger/env/dev/main.cue
vendored
@ -3,7 +3,7 @@ package main
|
||||
|
||||
import (
|
||||
"dagger.io/dagger"
|
||||
"dagger.io/file"
|
||||
"dagger.io/io"
|
||||
"dagger.io/alpine"
|
||||
"dagger.io/docker"
|
||||
)
|
||||
@ -11,15 +11,21 @@ import (
|
||||
// Dagger source code
|
||||
source: dagger.#Artifact
|
||||
|
||||
test: {
|
||||
unit: {
|
||||
logs: (io.#File & {
|
||||
from: build.ctr
|
||||
path: "/test.log"
|
||||
read: format: "string"
|
||||
}).read.data
|
||||
}
|
||||
integration: {
|
||||
// FIXME
|
||||
}
|
||||
}
|
||||
|
||||
// Build the dagger binaries
|
||||
build: {
|
||||
testLogs: {
|
||||
file.#Read & {
|
||||
from: ctr
|
||||
filename: "/test.log"
|
||||
}
|
||||
}.contents
|
||||
|
||||
ctr: docker.#Container & {
|
||||
image: docker.#ImageFromRegistry & {
|
||||
ref: "docker.io/golang:1.16-alpine"
|
||||
|
Reference in New Issue
Block a user