c77f3e6fa9
Signed-off-by: Olli Janatuinen <olli.janatuinen@gmail.com>
35 lines
507 B
CUE
35 lines
507 B
CUE
package dotnet
|
|
|
|
import (
|
|
"dagger.io/dagger"
|
|
)
|
|
|
|
// Publish a dotnet binary
|
|
#Publish: {
|
|
// Source code
|
|
source: dagger.#FS
|
|
|
|
// Target package to publish
|
|
package: *"." | string
|
|
|
|
env: [string]: string
|
|
|
|
container: #Container & {
|
|
"source": source
|
|
"env": {
|
|
env
|
|
}
|
|
command: {
|
|
args: [package]
|
|
flags: {
|
|
publish: true
|
|
"-o": "/output/"
|
|
}
|
|
}
|
|
export: directories: "/output": _
|
|
}
|
|
|
|
// Directory containing the output of the publish
|
|
output: container.export.directories."/output"
|
|
}
|