Apply Solomon comments
- Simplify cache id parameter with a field `name` - Configure GOOS & GOARCH values - Container image can now be overridden - Simplify build export Signed-off-by: Vasek - Tom C <tom.chauveau@epitech.eu>
This commit is contained in:
committed by
Vasek - Tom C
parent
2887139bf7
commit
1e384c4e9a
@@ -28,7 +28,11 @@ import (
|
||||
|
||||
container: #Container & {
|
||||
"source": source
|
||||
"env": env
|
||||
"env": {
|
||||
env
|
||||
GOOS: os
|
||||
GOARCH: arch
|
||||
}
|
||||
command: {
|
||||
args: [package]
|
||||
flags: {
|
||||
@@ -39,12 +43,8 @@ import (
|
||||
"-o": "/output/"
|
||||
}
|
||||
}
|
||||
export: directories: "/output/": _
|
||||
}
|
||||
|
||||
_binary: dagger.#Subdir & {
|
||||
input: container.output.rootfs
|
||||
path: "/output"
|
||||
}
|
||||
|
||||
binary: _binary.output
|
||||
binary: container.export.directories."/output/".contents
|
||||
}
|
||||
|
Reference in New Issue
Block a user