Dagger
Search

aws-ecr-push

No long description provided.

Installation

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

Entrypoint

Return Type
AwsEcrPush
Example
dagger -m github.com/dariusj1/daggerverse/aws-ecr-push@8dc3c44446cea6205ec7b7f8633a6b8c57fd1c47 call \
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
srcDirectory !-Path to a source directory
dockerfileString "Dockerfile"Path to a Dockerfile to build against
contextString "./"Path to a root context directory for the Dockerfile build
tokenSecret !-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@8dc3c44446cea6205ec7b7f8633a6b8c57fd1c47 call \
 build-and-push-oidc --src DIR_PATH --token env:MYSECRET --role-arn string --tag string
func (m *myModule) example(ctx context.Context, src *Directory, token *Secret, roleArn string, tag string) string  {
	return dag.
			AwsEcrPush().
			BuildAndPushOidc(ctx, src, token, roleArn, tag)
}
@function
async def example(src: dagger.Directory, token: dagger.Secret, role_arn: str, tag: str) -> str:
	return await (
		dag.aws_ecr_push()
		.build_and_push_oidc(src, token, role_arn, tag)
	)
@func()
async example(src: Directory, token: Secret, roleArn: string, tag: string): Promise<string> {
	return dag
		.awsEcrPush()
		.buildAndPushOidc(src, token, roleArn, tag)
}

buildAndPush() 🔗

Return Type
String !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-Path to a source directory for the Dockerfile build
dockerfileString "Dockerfile"Path to a Dockerfile to build against
contextString "./"Path to a root context directory for the Dockerfile build
keyIdSecret !-AWS_ACCESS_KEY_ID
keySecret !-AWS_SECRET_ACCESS_KEY
tokenSecret !-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@8dc3c44446cea6205ec7b7f8633a6b8c57fd1c47 call \
 build-and-push --src DIR_PATH --key-id env:MYSECRET --key env:MYSECRET --token env:MYSECRET --tag string
func (m *myModule) example(ctx context.Context, src *Directory, keyId *Secret, key *Secret, token *Secret, tag string) string  {
	return dag.
			AwsEcrPush().
			BuildAndPush(ctx, src, keyId, key, token, tag)
}
@function
async def example(src: dagger.Directory, key_id: dagger.Secret, key: dagger.Secret, token: dagger.Secret, tag: str) -> str:
	return await (
		dag.aws_ecr_push()
		.build_and_push(src, key_id, key, token, tag)
	)
@func()
async example(src: Directory, keyId: Secret, key: Secret, token: Secret, tag: string): Promise<string> {
	return dag
		.awsEcrPush()
		.buildAndPush(src, keyId, key, token, tag)
}

publishOidc() 🔗

Return Type
String !
Arguments
NameTypeDefault ValueDescription
containerContainer !-Container to publish
tokenSecret !-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@8dc3c44446cea6205ec7b7f8633a6b8c57fd1c47 call \
 publish-oidc --container IMAGE:TAG --token env:MYSECRET --role-arn string --tag string
func (m *myModule) example(ctx context.Context, container *Container, token *Secret, roleArn string, tag string) string  {
	return dag.
			AwsEcrPush().
			PublishOidc(ctx, container, token, roleArn, tag)
}
@function
async def example(container: dagger.Container, token: dagger.Secret, 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: Secret, 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
keyIdSecret !-AWS_ACCESS_KEY_ID
keySecret !-AWS_SECRET_ACCESS_KEY
tokenSecret !-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@8dc3c44446cea6205ec7b7f8633a6b8c57fd1c47 call \
 publish --container IMAGE:TAG --key-id env:MYSECRET --key env:MYSECRET --token env:MYSECRET --tag string
func (m *myModule) example(ctx context.Context, container *Container, keyId *Secret, key *Secret, token *Secret, tag string) string  {
	return dag.
			AwsEcrPush().
			Publish(ctx, container, keyId, key, token, tag)
}
@function
async def example(container: dagger.Container, key_id: dagger.Secret, key: dagger.Secret, token: dagger.Secret, tag: str) -> str:
	return await (
		dag.aws_ecr_push()
		.publish(container, key_id, key, token, tag)
	)
@func()
async example(container: Container, keyId: Secret, key: Secret, token: Secret, tag: string): Promise<string> {
	return dag
		.awsEcrPush()
		.publish(container, keyId, key, token, tag)
}

publishContainer() 🔗

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

buildDockerfile() 🔗

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-No description provided
dockerfileString "Dockerfile"No description provided
contextString "./"Path to a root context directory for the Dockerfile build
Example
dagger -m github.com/dariusj1/daggerverse/aws-ecr-push@8dc3c44446cea6205ec7b7f8633a6b8c57fd1c47 call \
 build-dockerfile --src DIR_PATH
func (m *myModule) example(src *Directory) *Container  {
	return dag.
			AwsEcrPush().
			BuildDockerfile(src)
}
@function
def example(src: dagger.Directory) -> dagger.Container:
	return (
		dag.aws_ecr_push()
		.build_dockerfile(src)
	)
@func()
example(src: Directory): Container {
	return dag
		.awsEcrPush()
		.buildDockerfile(src)
}