context to inputs

Signed-off-by: Richard Jones <richard@dagger.io>
This commit is contained in:
Richard Jones 2021-12-17 12:15:05 -07:00
parent cd9178fec9
commit 009a44ab27
No known key found for this signature in database
GPG Key ID: CFB3A382EB166F4C
2 changed files with 5 additions and 5 deletions

View File

@ -5,7 +5,7 @@ import (
)
engine.#Plan & {
context: secrets: testSecret: envvar: "TESTSECRET"
inputs: secrets: testSecret: envvar: "TESTSECRET"
actions: {
image: engine.#Pull & {
source: "alpine:3.15.0@sha256:e7d88de73db3d3fd9b2d63aa7f447a10fd0220b7cbf39803c803f2af9ba256b3"
@ -15,7 +15,7 @@ engine.#Plan & {
input: image.output
mounts: secret: {
dest: "/run/secrets/test"
contents: context.secrets.testSecret.contents
contents: inputs.secrets.testSecret.contents
}
args: [
"sh", "-c",
@ -30,7 +30,7 @@ engine.#Plan & {
input: image.output
mounts: secret: {
dest: "/run/secrets/test"
contents: context.secrets.testSecret.contents
contents: inputs.secrets.testSecret.contents
uid: 42
gid: 24
mask: 0o666

View File

@ -5,7 +5,7 @@ import (
)
engine.#Plan & {
context: services: dockerSocket: unix: "/var/run/docker.sock"
proxy: dockerSocket: unix: "/var/run/docker.sock"
actions: {
image: engine.#Pull & {
@ -21,7 +21,7 @@ engine.#Plan & {
input: imageWithDocker.output
mounts: docker: {
dest: "/var/run/docker.sock"
contents: context.services.dockerSocket.service
contents: proxy.dockerSocket.service
}
args: ["docker", "info"]
}