Move core actions to a subpackage

Signed-off-by: Helder Correia <174525+helderco@users.noreply.github.com>
This commit is contained in:
Helder Correia
2022-03-26 14:09:21 -01:00
parent 9f042800da
commit b3bdd347e7
121 changed files with 469 additions and 340 deletions

View File

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

View File

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

View File

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

View File

@@ -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

View File

@@ -2,8 +2,9 @@ package main
import (
"dagger.io/dagger"
"dagger.io/dagger/core"
)
dagger.#Plan & {
actions: invalid: dagger.#GitPull & {}
actions: invalid: core.#GitPull & {}
}

View File

@@ -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"]