Merge pull request #1704 from helderco/inputs-outputs-cleanup
Inputs/outputs cleanup
This commit is contained in:
@@ -5,10 +5,10 @@ import (
|
||||
)
|
||||
|
||||
dagger.#Plan & {
|
||||
inputs: directories: testdata: path: "./testdata"
|
||||
client: filesystem: testdata: read: contents: dagger.#FS
|
||||
|
||||
actions: build: dagger.#Dockerfile & {
|
||||
source: inputs.directories.testdata.contents
|
||||
source: client.filesystem.testdata.read.contents
|
||||
dockerfile: contents: """
|
||||
FROM alpine:latest@sha256:ab00606a42621fb68f2ed6ad3c88be54397f981a7b70a79db3d1172b11c4367d
|
||||
ARG TEST=foo
|
||||
|
@@ -5,22 +5,23 @@ import (
|
||||
)
|
||||
|
||||
dagger.#Plan & {
|
||||
inputs: {
|
||||
directories: testdata: path: "./testdata"
|
||||
secrets: sops: command: {
|
||||
client: {
|
||||
filesystem: testdata: read: contents: dagger.#FS
|
||||
commands: sops: {
|
||||
name: "sops"
|
||||
args: ["-d", "../../secrets_sops.yaml"]
|
||||
stdout: dagger.#Secret
|
||||
}
|
||||
}
|
||||
|
||||
actions: {
|
||||
sopsSecrets: dagger.#DecodeSecret & {
|
||||
format: "yaml"
|
||||
input: inputs.secrets.sops.contents
|
||||
input: client.commands.sops.stdout
|
||||
}
|
||||
|
||||
build: dagger.#Dockerfile & {
|
||||
source: inputs.directories.testdata.contents
|
||||
source: client.filesystem.testdata.read.contents
|
||||
auth: "daggerio/ci-test:private-pull": {
|
||||
username: "daggertest"
|
||||
secret: sopsSecrets.output.DOCKERHUB_TOKEN.contents
|
||||
|
@@ -5,11 +5,11 @@ import (
|
||||
)
|
||||
|
||||
dagger.#Plan & {
|
||||
inputs: directories: testdata: path: "./testdata"
|
||||
client: filesystem: testdata: read: contents: dagger.#FS
|
||||
|
||||
actions: {
|
||||
build: dagger.#Dockerfile & {
|
||||
source: inputs.directories.testdata.contents
|
||||
source: client.filesystem.testdata.read.contents
|
||||
}
|
||||
|
||||
verify: dagger.#Exec & {
|
||||
|
@@ -5,11 +5,11 @@ import (
|
||||
)
|
||||
|
||||
dagger.#Plan & {
|
||||
inputs: directories: testdata: path: "./testdata"
|
||||
client: filesystem: testdata: read: contents: dagger.#FS
|
||||
|
||||
actions: {
|
||||
build: dagger.#Dockerfile & {
|
||||
source: inputs.directories.testdata.contents
|
||||
source: client.filesystem.testdata.read.contents
|
||||
dockerfile: path: "./dockerfilepath/Dockerfile.custom"
|
||||
}
|
||||
|
||||
|
@@ -5,12 +5,12 @@ import (
|
||||
)
|
||||
|
||||
dagger.#Plan & {
|
||||
inputs: directories: testdata: path: "./testdata"
|
||||
client: filesystem: testdata: read: contents: dagger.#FS
|
||||
|
||||
actions: {
|
||||
// FIXME: this doesn't test anything beside not crashing
|
||||
build: dagger.#Dockerfile & {
|
||||
source: inputs.directories.testdata.contents
|
||||
source: client.filesystem.testdata.read.contents
|
||||
dockerfile: contents: """
|
||||
FROM alpine:latest@sha256:ab00606a42621fb68f2ed6ad3c88be54397f981a7b70a79db3d1172b11c4367d
|
||||
ENV test foobar
|
||||
|
@@ -5,11 +5,11 @@ import (
|
||||
)
|
||||
|
||||
dagger.#Plan & {
|
||||
inputs: directories: testdata: path: "./testdata"
|
||||
client: filesystem: testdata: read: contents: dagger.#FS
|
||||
|
||||
actions: {
|
||||
build: dagger.#Dockerfile & {
|
||||
source: inputs.directories.testdata.contents
|
||||
source: client.filesystem.testdata.read.contents
|
||||
dockerfile: contents: """
|
||||
FROM alpine:latest@sha256:ab00606a42621fb68f2ed6ad3c88be54397f981a7b70a79db3d1172b11c4367d
|
||||
RUN echo foobar > /output
|
||||
|
@@ -5,11 +5,11 @@ import (
|
||||
)
|
||||
|
||||
dagger.#Plan & {
|
||||
inputs: directories: testdata: path: "./testdata"
|
||||
client: filesystem: testdata: read: contents: dagger.#FS
|
||||
|
||||
actions: {
|
||||
build: dagger.#Dockerfile & {
|
||||
source: inputs.directories.testdata.contents
|
||||
source: client.filesystem.testdata.read.contents
|
||||
dockerfile: contents: """
|
||||
# syntax = docker/dockerfile:1.3
|
||||
FROM alpine:latest@sha256:ab00606a42621fb68f2ed6ad3c88be54397f981a7b70a79db3d1172b11c4367d
|
||||
|
@@ -5,12 +5,12 @@ import (
|
||||
)
|
||||
|
||||
dagger.#Plan & {
|
||||
inputs: directories: testdata: path: "./testdata"
|
||||
client: filesystem: testdata: read: contents: dagger.#FS
|
||||
|
||||
actions: {
|
||||
// FIXME: this doesn't test anything beside not crashing
|
||||
build: dagger.#Dockerfile & {
|
||||
source: inputs.directories.testdata.contents
|
||||
source: client.filesystem.testdata.read.contents
|
||||
dockerfile: contents: """
|
||||
FROM alpine:latest@sha256:ab00606a42621fb68f2ed6ad3c88be54397f981a7b70a79db3d1172b11c4367d
|
||||
"""
|
||||
|
@@ -5,12 +5,12 @@ import (
|
||||
)
|
||||
|
||||
dagger.#Plan & {
|
||||
inputs: directories: testdata: path: "./testdata"
|
||||
client: filesystem: testdata: read: contents: dagger.#FS
|
||||
|
||||
actions: {
|
||||
// FIXME: this doesn't test anything beside not crashing
|
||||
build: dagger.#Dockerfile & {
|
||||
source: inputs.directories.testdata.contents
|
||||
source: client.filesystem.testdata.read.contents
|
||||
dockerfile: contents: """
|
||||
FROM alpine:latest@sha256:ab00606a42621fb68f2ed6ad3c88be54397f981a7b70a79db3d1172b11c4367d
|
||||
"""
|
||||
|
Reference in New Issue
Block a user