This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
dagger/pkg/universe.dagger.io/x/olli.janatuinen@gmail.com/dotnet/publish.cue
Olli Janatuinen c77f3e6fa9 fix: include env insideo of container on .NET publish
Signed-off-by: Olli Janatuinen <olli.janatuinen@gmail.com>
2022-04-07 19:48:59 +02:00

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"
}