stdlib: adapted lib to new input spec

Signed-off-by: Sam Alba <sam.alba@gmail.com>
This commit is contained in:
Sam Alba
2021-05-18 21:37:34 -07:00
parent a369c7a1ba
commit 85cc9abb93
3 changed files with 13 additions and 10 deletions

View File

@@ -9,11 +9,11 @@ import (
// Base AWS Config
#Config: {
// AWS region
region: string
region: string @dagger(input)
// AWS access key
accessKey: dagger.#Secret
accessKey: dagger.#Secret @dagger(input)
// AWS secret key
secretKey: dagger.#Secret
secretKey: dagger.#Secret @dagger(input)
}
// Re-usable aws-cli component

View File

@@ -9,25 +9,25 @@ import (
#Put: {
// AWS Config
config: aws.#Config
config: aws.#Config @dagger(input)
// Source Artifact to upload to S3
source?: dagger.#Artifact
source?: dagger.#Artifact @dagger(input)
// Source inlined as a string to upload to S3
sourceInline?: string
sourceInline?: string @dagger(input)
// Target S3 URL (eg. s3://<bucket-name>/<path>/<sub-path>)
target: string
target: string @dagger(input)
// Object content type
contentType: string | *""
contentType: string | *"" @dagger(input)
// URL of the uploaded S3 object
url: out
url: out @dagger(output)
// Always write the object to S3
always?: bool
always?: bool @dagger(input)
out: string
aws.#Script & {