Dagger
Search

aws-ecr-push

No long description provided.

Installation

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

Entrypoint

Return Type
AwsEcrPush
Example
dagger -m github.com/dariusj1/daggerverse/aws-ecr-push@acd77bc78226a43580f027dbf6db439b9f569615 call \
func (m *MyModule) Example() *dagger.AwsEcrPush  {
	return dag.
			Awsecrpush()
}
@function
def example() -> dagger.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 -Path to a Dockerfile to build against +default "Dockerfile"
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 -Session duration in seconds (min 900s/15min) +default 900
regionString -AWS_DEFAULT_REGION +default "us-east-1"
sessionNameString -Session name (will appear in logs and billing)
Example
dagger -m github.com/dariusj1/daggerverse/aws-ecr-push@acd77bc78226a43580f027dbf6db439b9f569615 call \
 build-and-push-oidc --root DIR_PATH --token string --role-arn string --tag string
func (m *MyModule) Example(ctx context.Context, root *dagger.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, rolearn: str, tag: str) -> str:
	return await (
		dag.aws_ecr_push()
		.buildandpushoidc(root, token, rolearn, 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 -Path to a Dockerfile to build against +default "Dockerfile"
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 -AWS_DEFAULT_REGION +default "us-east-1"
Example
dagger -m github.com/dariusj1/daggerverse/aws-ecr-push@acd77bc78226a43580f027dbf6db439b9f569615 call \
 build-and-push --root DIR_PATH --key-id string --key string --token string --tag string
func (m *MyModule) Example(ctx context.Context, root *dagger.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, keyid: str, key: str, token: str, tag: str) -> str:
	return await (
		dag.aws_ecr_push()
		.buildandpush(root, keyid, 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 -Session duration in seconds (min 900s/15min) +default 900
regionString -Default region +default "us-east-1"
sessionNameString -Session name (will appear in logs and billing)
Example
dagger -m github.com/dariusj1/daggerverse/aws-ecr-push@acd77bc78226a43580f027dbf6db439b9f569615 call \
 publish-oidc --container IMAGE:TAG --token string --role-arn string --tag string
func (m *MyModule) Example(ctx context.Context, container *dagger.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, rolearn: str, tag: str) -> str:
	return await (
		dag.aws_ecr_push()
		.publishoidc(container, token, rolearn, 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 -Default region +default "us-east-1"
Example
dagger -m github.com/dariusj1/daggerverse/aws-ecr-push@acd77bc78226a43580f027dbf6db439b9f569615 call \
 publish --container IMAGE:TAG --tag string
func (m *MyModule) Example(ctx context.Context, container *dagger.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@acd77bc78226a43580f027dbf6db439b9f569615 call \
 publish-container --container IMAGE:TAG --tag string --ecr-secret string
func (m *MyModule) Example(ctx context.Context, container *dagger.Container, tag string, ecrSecret string) string  {
	return dag.
			Awsecrpush().
			Publishcontainer(ctx, container, tag, ecrSecret)
}
@function
async def example(container: dagger.Container, tag: str, ecrsecret: str) -> str:
	return await (
		dag.aws_ecr_push()
		.publishcontainer(container, tag, ecrsecret)
	)
@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 -+default "Dockerfile"
Example
dagger -m github.com/dariusj1/daggerverse/aws-ecr-push@acd77bc78226a43580f027dbf6db439b9f569615 call \
 build-dockerfile --root DIR_PATH
func (m *MyModule) Example(root *dagger.Directory) *dagger.Container  {
	return dag.
			Awsecrpush().
			Builddockerfile(root)
}
@function
def example(root: dagger.Directory) -> dagger.Container:
	return (
		dag.aws_ecr_push()
		.builddockerfile(root)
	)
@func()
example(root: Directory): Container {
	return dag
		.awsEcrPush()
		.buildDockerfile(root)
}