stdlib/ecr / jamstack: ported to new syntax
Signed-off-by: Sam Alba <sam.alba@gmail.com>
This commit is contained in:
@@ -7,30 +7,21 @@ import (
|
||||
|
||||
// Credentials retriever for ECR
|
||||
#Credentials: {
|
||||
|
||||
// AWS Config
|
||||
config: aws.#Config
|
||||
|
||||
// Target is the ECR image
|
||||
target: string
|
||||
|
||||
out: dagger.#Secret
|
||||
|
||||
// ECR credentials
|
||||
credentials: dagger.#RegistryCredentials & {
|
||||
username: "AWS"
|
||||
secret: out
|
||||
}
|
||||
username: "AWS"
|
||||
secret: out
|
||||
|
||||
aws.#Script & {
|
||||
always: true
|
||||
"config": config
|
||||
export: "/out"
|
||||
code: """
|
||||
aws ecr get-login-password > /out
|
||||
"""
|
||||
}
|
||||
|
||||
// Authentication for ECR Registries
|
||||
auth: dagger.#RegistryAuth
|
||||
auth: "\(target)": credentials
|
||||
}
|
||||
|
Reference in New Issue
Block a user