context to inputs
Signed-off-by: Richard Jones <richard@dagger.io>
This commit is contained in:
parent
cd9178fec9
commit
009a44ab27
@ -5,7 +5,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
engine.#Plan & {
|
engine.#Plan & {
|
||||||
context: secrets: testSecret: envvar: "TESTSECRET"
|
inputs: secrets: testSecret: envvar: "TESTSECRET"
|
||||||
actions: {
|
actions: {
|
||||||
image: engine.#Pull & {
|
image: engine.#Pull & {
|
||||||
source: "alpine:3.15.0@sha256:e7d88de73db3d3fd9b2d63aa7f447a10fd0220b7cbf39803c803f2af9ba256b3"
|
source: "alpine:3.15.0@sha256:e7d88de73db3d3fd9b2d63aa7f447a10fd0220b7cbf39803c803f2af9ba256b3"
|
||||||
@ -15,7 +15,7 @@ engine.#Plan & {
|
|||||||
input: image.output
|
input: image.output
|
||||||
mounts: secret: {
|
mounts: secret: {
|
||||||
dest: "/run/secrets/test"
|
dest: "/run/secrets/test"
|
||||||
contents: context.secrets.testSecret.contents
|
contents: inputs.secrets.testSecret.contents
|
||||||
}
|
}
|
||||||
args: [
|
args: [
|
||||||
"sh", "-c",
|
"sh", "-c",
|
||||||
@ -30,7 +30,7 @@ engine.#Plan & {
|
|||||||
input: image.output
|
input: image.output
|
||||||
mounts: secret: {
|
mounts: secret: {
|
||||||
dest: "/run/secrets/test"
|
dest: "/run/secrets/test"
|
||||||
contents: context.secrets.testSecret.contents
|
contents: inputs.secrets.testSecret.contents
|
||||||
uid: 42
|
uid: 42
|
||||||
gid: 24
|
gid: 24
|
||||||
mask: 0o666
|
mask: 0o666
|
||||||
|
@ -5,7 +5,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
engine.#Plan & {
|
engine.#Plan & {
|
||||||
context: services: dockerSocket: unix: "/var/run/docker.sock"
|
proxy: dockerSocket: unix: "/var/run/docker.sock"
|
||||||
|
|
||||||
actions: {
|
actions: {
|
||||||
image: engine.#Pull & {
|
image: engine.#Pull & {
|
||||||
@ -21,7 +21,7 @@ engine.#Plan & {
|
|||||||
input: imageWithDocker.output
|
input: imageWithDocker.output
|
||||||
mounts: docker: {
|
mounts: docker: {
|
||||||
dest: "/var/run/docker.sock"
|
dest: "/var/run/docker.sock"
|
||||||
contents: context.services.dockerSocket.service
|
contents: proxy.dockerSocket.service
|
||||||
}
|
}
|
||||||
args: ["docker", "info"]
|
args: ["docker", "info"]
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user