runner: switch to client API
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
parent
0786410bbd
commit
b33b75a570
@ -17,7 +17,7 @@ import (
|
|||||||
|
|
||||||
var (
|
var (
|
||||||
ActionSelector = cue.Str("actions")
|
ActionSelector = cue.Str("actions")
|
||||||
OutputSelector = cue.Str("outputs")
|
ClientSelector = cue.Str("client")
|
||||||
)
|
)
|
||||||
|
|
||||||
type Plan struct {
|
type Plan struct {
|
||||||
|
@ -89,9 +89,9 @@ func (r *Runner) initTasks() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// If an `output` task is targeting an allowed task, allow the output task as well
|
// If a `client` task is targeting an allowed task, allow the output task as well
|
||||||
for _, t := range flow.Tasks() {
|
for _, t := range flow.Tasks() {
|
||||||
if t.Path().Selectors()[0] != OutputSelector {
|
if t.Path().Selectors()[0] != ClientSelector {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
for _, dep := range t.Dependencies() {
|
for _, dep := range t.Dependencies() {
|
||||||
|
@ -8,10 +8,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
dagger.#Plan & {
|
dagger.#Plan & {
|
||||||
outputs: files: test: {
|
client: filesystem: "./test_do": write: contents: actions.test.one.export.files["/output.txt"]
|
||||||
dest: "./test_do"
|
|
||||||
contents: actions.test.one.export.files["/output.txt"]
|
|
||||||
}
|
|
||||||
|
|
||||||
actions: {
|
actions: {
|
||||||
image: alpine.#Build & {
|
image: alpine.#Build & {
|
||||||
|
Reference in New Issue
Block a user