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/docs/tests/use-cases/ci-cd-for-go-project/retrieve-go-project/dagger.cue
Tom Chauveau 6fe49a0294
Improve go use case example according to Gerhard's review
Signed-off-by: Vasek - Tom C <tom.chauveau@epitech.eu>
2022-03-17 17:28:38 +01:00

19 lines
286 B
CUE

package main
import (
"dagger.io/dagger"
)
dagger.#Plan & {
// Retrieve go source code
client: filesystem: ".": read: {
contents: dagger.#FS
include: ["go.mod", "go.sum", "**/*.go"]
}
actions: {
// Alias to code directory
_code: client.filesystem.".".read.contents
}
}