Dagger
Search

aws-ecr-push

No long description provided.

Installation

dagger install github.com/dariusj1/daggerverse/aws-ecr-push@99aeccded6a2311ca33412e8e5497c3275f4ff75

Entrypoint

Return Type
AwsEcrPush
Example
func (m *myModule) example() *AwsEcrPush  {
	return dag.
			AwsEcrPush()
}
@function
def example() -> dag.AwsEcrPush:
	return (
		dag.aws_ecr_push()
	)
@func()
example(): AwsEcrPush {
	return dag
		.awsEcrPush()
}

Types

AwsEcrPush 🔗

buildAndPushOidc() 🔗

Return Type
String !
Arguments
NameTypeDefault ValueDescription
rootDirectory !-Path to a root context directory for the Dockerfile build
dockerfileString "Dockerfile"Path to a Dockerfile to build against
tokenString !-OIDC token
roleArnString !-AWS IAM Role to assume
tagString !-The image name assigned to the container before uploading (should start with an ECR address and optionally include a :tag)
durationSecInteger 900Session duration in seconds (min 900s/15min)
regionString "us-east-1"AWS_DEFAULT_REGION
sessionNameString -Session name (will appear in logs and billing)
Example
dagger -m github.com/dariusj1/daggerverse/aws-ecr-push@99aeccded6a2311ca33412e8e5497c3275f4ff75 call \
 build-and-push-oidc --root DIR_PATH --token string --role-arn string --tag string
func (m *myModule) example(ctx context.Context, root *Directory, token string, roleArn string, tag string) string  {
	return dag.
			AwsEcrPush().
			BuildAndPushOidc(ctx, root, token, roleArn, tag)
}
@function
async def example(root: dagger.Directory, token: str, role_arn: str, tag: str) -> str:
	return await (
		dag.aws_ecr_push()
		.build_and_push_oidc(root, token, role_arn, tag)
	)
@func()
async example(root: Directory, token: string, roleArn: string, tag: string): Promise<string> {
	return dag
		.awsEcrPush()
		.buildAndPushOidc(root, token, roleArn, tag)
}

buildAndPush() 🔗

Return Type
String !
Arguments
NameTypeDefault ValueDescription
rootDirectory !-Path to a root context directory for the Dockerfile build
dockerfileString "Dockerfile"Path to a Dockerfile to build against
keyIdString !-AWS_ACCESS_KEY_ID
keyString !-AWS_SECRET_ACCESS_KEY
tokenString !-AWS_SESSION_TOKEN
tagString !-The image name assigned to the container before uploading (should start with an ECR address and optionally include a :tag)
regionString "us-east-1"AWS_DEFAULT_REGION
Example
dagger -m github.com/dariusj1/daggerverse/aws-ecr-push@99aeccded6a2311ca33412e8e5497c3275f4ff75 call \
 build-and-push --root DIR_PATH --key-id string --key string --token string --tag string
func (m *myModule) example(ctx context.Context, root *Directory, keyId string, key string, token string, tag string) string  {
	return dag.
			AwsEcrPush().
			BuildAndPush(ctx, root, keyId, key, token, tag)
}
@function
async def example(root: dagger.Directory, key_id: str, key: str, token: str, tag: str) -> str:
	return await (
		dag.aws_ecr_push()
		.build_and_push(root, key_id, key, token, tag)
	)
@func()
async example(root: Directory, keyId: string, key: string, token: string, tag: string): Promise<string> {
	return dag
		.awsEcrPush()
		.buildAndPush(root, keyId, key, token, tag)
}

publishOidc() 🔗

Return Type
String !
Arguments
NameTypeDefault ValueDescription
containerContainer !-Container to publish
tokenString !-OIDC token
roleArnString !-AWS IAM Role to assume
tagString !-The image name assigned to the container before uploading (should start with an ECR address and optionally include a :tag)
durationSecInteger 900Session duration in seconds (min 900s/15min)
regionString "us-east-1"Default region
sessionNameString -Session name (will appear in logs and billing)
Example
dagger -m github.com/dariusj1/daggerverse/aws-ecr-push@99aeccded6a2311ca33412e8e5497c3275f4ff75 call \
 publish-oidc --container IMAGE:TAG --token string --role-arn string --tag string
func (m *myModule) example(ctx context.Context, container *Container, token string, roleArn string, tag string) string  {
	return dag.
			AwsEcrPush().
			PublishOidc(ctx, container, token, roleArn, tag)
}
@function
async def example(container: dagger.Container, token: str, role_arn: str, tag: str) -> str:
	return await (
		dag.aws_ecr_push()
		.publish_oidc(container, token, role_arn, tag)
	)
@func()
async example(container: Container, token: string, roleArn: string, tag: string): Promise<string> {
	return dag
		.awsEcrPush()
		.publishOidc(container, token, roleArn, tag)
}

publish() 🔗

Return Type
String !
Arguments
NameTypeDefault ValueDescription
containerContainer !-Container to publish
keyIdString -AWS_ACCESS_KEY_ID
keyString -AWS_SECRET_ACCESS_KEY
tokenString -AWS_SESSION_TOKEN
tagString !-The image name assigned to the container before uploading (should start with an ECR address and optionally include a :tag)
regionString "us-east-1"Default region
Example
dagger -m github.com/dariusj1/daggerverse/aws-ecr-push@99aeccded6a2311ca33412e8e5497c3275f4ff75 call \
 publish --container IMAGE:TAG --tag string
func (m *myModule) example(ctx context.Context, container *Container, tag string) string  {
	return dag.
			AwsEcrPush().
			Publish(ctx, container, tag)
}
@function
async def example(container: dagger.Container, tag: str) -> str:
	return await (
		dag.aws_ecr_push()
		.publish(container, tag)
	)
@func()
async example(container: Container, tag: string): Promise<string> {
	return dag
		.awsEcrPush()
		.publish(container, tag)
}

publishContainer() 🔗

Return Type
String !
Arguments
NameTypeDefault ValueDescription
containerContainer !-No description provided
tagString !-No description provided
ecrSecretString !-No description provided
Example
dagger -m github.com/dariusj1/daggerverse/aws-ecr-push@99aeccded6a2311ca33412e8e5497c3275f4ff75 call \
 publish-container --container IMAGE:TAG --tag string --ecr-secret string
func (m *myModule) example(ctx context.Context, container *Container, tag string, ecrSecret string) string  {
	return dag.
			AwsEcrPush().
			PublishContainer(ctx, container, tag, ecrSecret)
}
@function
async def example(container: dagger.Container, tag: str, ecr_secret: str) -> str:
	return await (
		dag.aws_ecr_push()
		.publish_container(container, tag, ecr_secret)
	)
@func()
async example(container: Container, tag: string, ecrSecret: string): Promise<string> {
	return dag
		.awsEcrPush()
		.publishContainer(container, tag, ecrSecret)
}

buildDockerfile() 🔗

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
rootDirectory !-No description provided
dockerfileString "Dockerfile"No description provided
Example
dagger -m github.com/dariusj1/daggerverse/aws-ecr-push@99aeccded6a2311ca33412e8e5497c3275f4ff75 call \
 build-dockerfile --root DIR_PATH
func (m *myModule) example(root *Directory) *Container  {
	return dag.
			AwsEcrPush().
			BuildDockerfile(root)
}
@function
def example(root: dagger.Directory) -> dagger.Container:
	return (
		dag.aws_ecr_push()
		.build_dockerfile(root)
	)
@func()
example(root: Directory): Container {
	return dag
		.awsEcrPush()
		.buildDockerfile(root)
}