Dagger
Search

aws-ecr

No long description provided.

Installation

dagger install github.com/mjb141/daggerverse/aws-ecr@5b9948571394a9210a5b82989841ac5479472e1d

Entrypoint

Return Type
AwsEcr !
Arguments
NameTypeDefault ValueDescription
accessKeySecret nullAWS_ACCESS_KEY_ID
secretKeySecret nullAWS_SECRET_ACCESS_KEY
sessionTokenSecret nullAWS_SESSION_TOKEN
regionString !"eu-west-1"AWS_REGION
Example
func (m *myModule) example(region string) *AwsEcr  {
	return dag.
			AwsEcr(region)
}

Types

AwsEcr 🔗

withCredentials() 🔗

(Required for: push) Set AWS credentials

Return Type
AwsEcr !
Arguments
NameTypeDefault ValueDescription
accessKeySecret nullNo description provided
secretKeySecret nullNo description provided
sessionTokenSecret nullNo description provided
regionString !"eu-west-1"No description provided
Example
func (m *myModule) example(region string, region1 string) *AwsEcr  {
	return dag.
			AwsEcr(region).
			WithCredentials(region1)
}

push() 🔗

Push an Image to AWS ECR

Return Type
[String ! ] !
Arguments
NameTypeDefault ValueDescription
ctrContainer !-An OCI-compatible container, also known as a Docker container.
accountIdString !-No description provided
repositoryString !-No description provided
tags[String ! ] nullNo description provided
Example
func (m *myModule) example(ctx context.Context, region string, ctr *Container, accountId string, repository string) []string  {
	return dag.
			AwsEcr(region).
			Push(ctx, ctr, accountId, repository)
}