ci: fixed output + implemented cue linter
Signed-off-by: Sam Alba <samalba@users.noreply.github.com>
This commit is contained in:
parent
297fded56d
commit
ba0f565dbf
14
ci/main.cue
14
ci/main.cue
@ -29,13 +29,10 @@ dagger.#Plan & {
|
||||
}
|
||||
}
|
||||
|
||||
// FIXME?
|
||||
// FTL failed to load plan: outputs.directories."go binaries".contents: undefined field: contents:
|
||||
//
|
||||
// outputs: directories: "go binaries": {
|
||||
// contents: actions.build.export.directories["/build"].contents
|
||||
// dest: "./build"
|
||||
// }
|
||||
outputs: directories: "go binaries": {
|
||||
contents: actions.build.export.directories["/build"]
|
||||
dest: "./build"
|
||||
}
|
||||
|
||||
actions: {
|
||||
_goModCache: "go mod cache": {
|
||||
@ -91,11 +88,12 @@ dagger.#Plan & {
|
||||
}
|
||||
}
|
||||
|
||||
cueFmt: bash.#Run & {
|
||||
cueLint: bash.#Run & {
|
||||
input: _baseImages.cue
|
||||
|
||||
script: contents: #"""
|
||||
find . -name '*.cue' -not -path '*/cue.mod/*' -print | time xargs -n 1 -P 8 cue fmt -s
|
||||
test -z "$$(git status -s . | grep -e "^ M" | grep .cue | cut -d ' ' -f3 | tee /dev/stderr)"
|
||||
"""#
|
||||
workdir: mounts["dagger source code"].dest
|
||||
mounts: {
|
||||
|
Reference in New Issue
Block a user