stdlib: cuefmt

Signed-off-by: Sam Alba <sam.alba@gmail.com>
This commit is contained in:
Sam Alba 2021-03-03 18:08:43 -08:00
parent 56bcf6366c
commit bac3ff4f68
2 changed files with 51 additions and 51 deletions

View File

@ -49,53 +49,53 @@ import (
[string]: string [string]: string
#dagger: compute: [ #dagger: compute: [
dagger.#Load & { dagger.#Load & {
from: alpine.#Image & { from: alpine.#Image & {
package: bash: "=5.1.0-r0" package: bash: "=5.1.0-r0"
package: jq: "=1.6-r1" package: jq: "=1.6-r1"
package: "aws-cli": "=1.18.177-r0" package: "aws-cli": "=1.18.177-r0"
}
},
dagger.#Mkdir & {
path: "/src"
},
for dest, content in #files {
dagger.#WriteFile & {
"dest": dest
"content": content
}
},
dagger.#Exec & {
args: [
"/bin/bash",
"--noprofile",
"--norc",
"-eo",
"pipefail",
"/entrypoint.sh",
]
env: {
AWS_CONFIG_FILE: "/cache/aws/config"
AWS_ACCESS_KEY_ID: config.accessKey
AWS_SECRET_ACCESS_KEY: config.secretKey
AWS_DEFAULT_REGION: config.region
AWS_REGION: config.region
AWS_DEFAULT_OUTPUT: "json"
AWS_PAGER: ""
if neverUpdate {
NEVER_UPDATE: "true"
} }
STACK_NAME: stackName },
TIMEOUT: "\(timeout)" dagger.#Mkdir & {
ON_FAILURE: onFailure path: "/src"
} },
dir: "/src" for dest, content in #files {
mount: "/cache/aws": "cache" dagger.#WriteFile & {
}, "dest": dest
dagger.#Export & { "content": content
source: "/outputs.json" }
format: "json" },
}, dagger.#Exec & {
] args: [
"/bin/bash",
"--noprofile",
"--norc",
"-eo",
"pipefail",
"/entrypoint.sh",
]
env: {
AWS_CONFIG_FILE: "/cache/aws/config"
AWS_ACCESS_KEY_ID: config.accessKey
AWS_SECRET_ACCESS_KEY: config.secretKey
AWS_DEFAULT_REGION: config.region
AWS_REGION: config.region
AWS_DEFAULT_OUTPUT: "json"
AWS_PAGER: ""
if neverUpdate {
NEVER_UPDATE: "true"
}
STACK_NAME: stackName
TIMEOUT: "\(timeout)"
ON_FAILURE: onFailure
}
dir: "/src"
mount: "/cache/aws": "cache"
},
dagger.#Export & {
source: "/outputs.json"
format: "json"
},
]
} }
} }

View File

@ -80,8 +80,8 @@ package dagger
} }
#Mkdir: { #Mkdir: {
do: "mkdir" do: "mkdir"
dir: *"/" | string dir: *"/" | string
path: string path: string
mode: int | *0o755 mode: int | *0o755
} }