3e8c9379b5
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
37 lines
489 B
CUE
37 lines
489 B
CUE
package go
|
|
|
|
import (
|
|
"dagger.io/dagger"
|
|
"universe.dagger.io/go"
|
|
"universe.dagger.io/alpine"
|
|
)
|
|
|
|
dagger.#Plan & {
|
|
actions: test: {
|
|
_source: dagger.#Scratch & {}
|
|
|
|
simple: go.#Container & {
|
|
source: _source
|
|
command: {
|
|
name: "go"
|
|
args: ["version"]
|
|
}
|
|
}
|
|
|
|
override: {
|
|
base: alpine.#Build & {
|
|
packages: go: _
|
|
}
|
|
|
|
command: go.#Container & {
|
|
input: base.output
|
|
source: _source
|
|
command: {
|
|
name: "go"
|
|
args: ["version"]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|