examples: simple-s3: converted to inputs attributes for testing

Signed-off-by: Sam Alba <sam.alba@gmail.com>
This commit is contained in:
Sam Alba 2021-05-14 17:53:57 -07:00
parent 54e8a6262d
commit a369c7a1ba

View File

@ -8,13 +8,15 @@ import (
// AWS Config for credentials and default region
awsConfig: aws.#Config & {
region: *"us-east-1" | string
region: *"us-east-1" | string @dagger(input)
accessKey: dagger.#Secret @dagger(input)
secretKey: dagger.#Secret @dagger(input)
}
// Name of the S3 bucket to use
bucket: *"dagger-io-examples" | string
bucket: *"dagger-io-examples" | string @dagger(input)
source: dagger.#Artifact
source: dagger.#Artifact @dagger(input)
url: "\(deploy.url)index.html"
deploy: s3.#Put & {