Move core actions to a subpackage
Signed-off-by: Helder Correia <174525+helderco@users.noreply.github.com>
This commit is contained in:
@@ -2,10 +2,11 @@ package main
|
||||
|
||||
import (
|
||||
"dagger.io/dagger"
|
||||
"dagger.io/dagger/core"
|
||||
)
|
||||
|
||||
dagger.#Plan & {
|
||||
actions: badref: dagger.#GitPull & {
|
||||
actions: badref: core.#GitPull & {
|
||||
remote: "https://github.com/blocklayerhq/acme-clothing.git"
|
||||
ref: "lalalalal"
|
||||
}
|
||||
|
@@ -2,10 +2,11 @@ package main
|
||||
|
||||
import (
|
||||
"dagger.io/dagger"
|
||||
"dagger.io/dagger/core"
|
||||
)
|
||||
|
||||
dagger.#Plan & {
|
||||
actions: badremote: dagger.#GitPull & {
|
||||
actions: badremote: core.#GitPull & {
|
||||
remote: "https://github.com/blocklayerhq/lalalala.git"
|
||||
ref: "master"
|
||||
}
|
||||
|
@@ -2,10 +2,11 @@ package main
|
||||
|
||||
import (
|
||||
"dagger.io/dagger"
|
||||
"dagger.io/dagger/core"
|
||||
)
|
||||
|
||||
dagger.#Plan & {
|
||||
actions: gitPull: dagger.#GitPull & {
|
||||
actions: gitPull: core.#GitPull & {
|
||||
remote: "https://github.com/blocklayerhq/acme-clothing.git"
|
||||
ref: "master"
|
||||
}
|
||||
|
@@ -2,26 +2,27 @@ package testing
|
||||
|
||||
import (
|
||||
"dagger.io/dagger"
|
||||
"dagger.io/dagger/core"
|
||||
)
|
||||
|
||||
dagger.#Plan & {
|
||||
actions: {
|
||||
repo1: dagger.#GitPull & {
|
||||
repo1: core.#GitPull & {
|
||||
remote: "https://github.com/blocklayerhq/acme-clothing.git"
|
||||
ref: "master"
|
||||
}
|
||||
|
||||
repo2: dagger.#GitPull & {
|
||||
repo2: core.#GitPull & {
|
||||
remote: "https://github.com/blocklayerhq/acme-clothing.git"
|
||||
ref: "master"
|
||||
keepGitDir: true
|
||||
}
|
||||
|
||||
image: dagger.#Pull & {
|
||||
image: core.#Pull & {
|
||||
source: "alpine:3.15.0"
|
||||
}
|
||||
|
||||
verify: dagger.#Exec & {
|
||||
verify: core.#Exec & {
|
||||
input: image.output
|
||||
args: ["sh", "-c", """
|
||||
set -eu
|
||||
|
@@ -2,8 +2,9 @@ package main
|
||||
|
||||
import (
|
||||
"dagger.io/dagger"
|
||||
"dagger.io/dagger/core"
|
||||
)
|
||||
|
||||
dagger.#Plan & {
|
||||
actions: invalid: dagger.#GitPull & {}
|
||||
actions: invalid: core.#GitPull & {}
|
||||
}
|
||||
|
@@ -2,6 +2,7 @@ package main
|
||||
|
||||
import (
|
||||
"dagger.io/dagger"
|
||||
"dagger.io/dagger/core"
|
||||
)
|
||||
|
||||
dagger.#Plan & {
|
||||
@@ -13,16 +14,16 @@ dagger.#Plan & {
|
||||
|
||||
actions: {
|
||||
|
||||
alpine: dagger.#Pull & {
|
||||
alpine: core.#Pull & {
|
||||
source: "alpine:3.15.0"
|
||||
}
|
||||
|
||||
sopsSecrets: dagger.#DecodeSecret & {
|
||||
sopsSecrets: core.#DecodeSecret & {
|
||||
format: "yaml"
|
||||
input: client.commands.sops.stdout
|
||||
}
|
||||
|
||||
testRepo: dagger.#GitPull & {
|
||||
testRepo: core.#GitPull & {
|
||||
remote: "https://github.com/dagger/dagger.git"
|
||||
ref: "main"
|
||||
auth: {
|
||||
@@ -31,7 +32,7 @@ dagger.#Plan & {
|
||||
}
|
||||
}
|
||||
|
||||
testContent: dagger.#Exec & {
|
||||
testContent: core.#Exec & {
|
||||
input: alpine.output
|
||||
always: true
|
||||
args: ["ls", "-l", "/repo/README.md"]
|
||||
|
Reference in New Issue
Block a user