From 6199833aafc073844a0a9c16a855ddf1267bfc23 Mon Sep 17 00:00:00 2001 From: Solomon Hykes Date: Fri, 30 Apr 2021 06:08:06 +0000 Subject: [PATCH] dev env: use dagger.io/io Signed-off-by: Solomon Hykes --- .dagger/env/dev/main.cue | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/.dagger/env/dev/main.cue b/.dagger/env/dev/main.cue index 0dd45f5b..51d19ef8 100644 --- a/.dagger/env/dev/main.cue +++ b/.dagger/env/dev/main.cue @@ -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"