dev.cue: polish
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
This commit is contained in:
15
dev.cue
15
dev.cue
@@ -8,6 +8,7 @@ import (
|
||||
// Dagger source code
|
||||
source: dagger.#Artifact
|
||||
|
||||
// Build the dagger binaries
|
||||
build: #Container & {
|
||||
image: #ImageFromRef & {ref: "docker.io/golang:1.16-alpine"}
|
||||
|
||||
@@ -15,6 +16,11 @@ build: #Container & {
|
||||
"apk add --no-cache file",
|
||||
]
|
||||
|
||||
command: """
|
||||
go test -v ./...
|
||||
go build -o /binaries/ ./cmd/...
|
||||
"""
|
||||
|
||||
volume: {
|
||||
daggerSource: {
|
||||
from: source
|
||||
@@ -36,20 +42,17 @@ build: #Container & {
|
||||
|
||||
dir: "/src"
|
||||
outputDir: "/binaries"
|
||||
command: """
|
||||
go test -v ./...
|
||||
go build -o /binaries/ ./cmd/...
|
||||
"""
|
||||
}
|
||||
|
||||
// Execute `dagger help`
|
||||
usage: #Container & {
|
||||
image: alpine.#Image
|
||||
|
||||
command: "dagger help"
|
||||
|
||||
volume: binaries: {
|
||||
from: build
|
||||
dest: "/usr/local/dagger/bin/"
|
||||
}
|
||||
shell: search: "/usr/local/dagger/bin": true
|
||||
|
||||
command: "dagger help"
|
||||
}
|
||||
|
Reference in New Issue
Block a user