This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
dagger/stdlib/aws/ecr/ecr.cue
Tom Chauveau 15d1eca41e Add tests for AWS ecr
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-05-04 12:40:57 -07:00

30 lines
504 B
CUE

package ecr
import (
"dagger.io/dagger"
"dagger.io/aws"
)
// Credentials retriever for ECR
#Credentials: {
// AWS Config
config: aws.#Config
out: dagger.#Secret
// ECR credentials
username: "AWS"
// FIXME Exected twice and trigger error : "TestECR.creds.secret: 2 errors in empty disjunction"
// Happend because of v0.8.3 of buildkit container
secret: out
aws.#Script & {
always: true
"config": config
export: "/out"
code: """
aws ecr get-login-password > /out
"""
}
}