go.#Build: small improvements
Signed-off-by: Solomon Hykes <solomon@dagger.io>
This commit is contained in:
parent
344998c904
commit
f6cee7f306
@ -43,8 +43,9 @@ import (
|
|||||||
"-o": "/output/"
|
"-o": "/output/"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
export: directories: "/output/": _
|
export: directories: "/output": _
|
||||||
}
|
}
|
||||||
|
|
||||||
binary: container.export.directories."/output/"
|
// Directory containing the output of the build
|
||||||
|
output: container.export.directories."/output"
|
||||||
}
|
}
|
||||||
|
@ -36,9 +36,6 @@ import (
|
|||||||
dest: _cachePath
|
dest: _cachePath
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
env: {
|
env: GOMODCACHE: _cachePath
|
||||||
CGO_ENABLED: "0"
|
|
||||||
GOMODCACHE: _cachePath
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -27,7 +27,7 @@ dagger.#Plan & {
|
|||||||
env: NAME: "dagger"
|
env: NAME: "dagger"
|
||||||
mounts: binary: {
|
mounts: binary: {
|
||||||
dest: "/bin/hello"
|
dest: "/bin/hello"
|
||||||
contents: build.binary
|
contents: build.output
|
||||||
source: "/test"
|
source: "/test"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,7 @@ dagger.#Plan & {
|
|||||||
command: args: ["version"]
|
command: args: ["version"]
|
||||||
}
|
}
|
||||||
|
|
||||||
overide: {
|
override: {
|
||||||
base: alpine.#Build & {
|
base: alpine.#Build & {
|
||||||
packages: go: _
|
packages: go: _
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user