aws-ecr-push
No long description provided.
Installation
dagger install github.com/dariusj1/daggerverse/aws-ecr-push@99aeccded6a2311ca33412e8e5497c3275f4ff75Entrypoint
Return Type
AwsEcrPush Example
dagger -m github.com/dariusj1/daggerverse/aws-ecr-push@99aeccded6a2311ca33412e8e5497c3275f4ff75 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
| Name | Type | Default Value | Description | 
|---|---|---|---|
| root | Directory ! | - | Path to a root context directory for the Dockerfile build | 
| dockerfile | String | "Dockerfile" | Path to a Dockerfile to build against | 
| token | String ! | - | OIDC token | 
| roleArn | String ! | - | AWS IAM Role to assume | 
| tag | String ! | - | The image name assigned to the container before uploading (should start with an ECR address and optionally include a :tag) | 
| durationSec | Integer | 900 | Session duration in seconds (min 900s/15min) | 
| region | String | "us-east-1" | AWS_DEFAULT_REGION | 
| sessionName | String | - | 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 stringfunc (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, 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
| Name | Type | Default Value | Description | 
|---|---|---|---|
| root | Directory ! | - | Path to a root context directory for the Dockerfile build | 
| dockerfile | String | "Dockerfile" | Path to a Dockerfile to build against | 
| keyId | String ! | - | AWS_ACCESS_KEY_ID | 
| key | String ! | - | AWS_SECRET_ACCESS_KEY | 
| token | String ! | - | AWS_SESSION_TOKEN | 
| tag | String ! | - | The image name assigned to the container before uploading (should start with an ECR address and optionally include a :tag) | 
| region | String | "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 stringfunc (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, 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
| Name | Type | Default Value | Description | 
|---|---|---|---|
| container | Container ! | - | Container to publish | 
| token | String ! | - | OIDC token | 
| roleArn | String ! | - | AWS IAM Role to assume | 
| tag | String ! | - | The image name assigned to the container before uploading (should start with an ECR address and optionally include a :tag) | 
| durationSec | Integer | 900 | Session duration in seconds (min 900s/15min) | 
| region | String | "us-east-1" | Default region | 
| sessionName | String | - | 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 stringfunc (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, 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
| Name | Type | Default Value | Description | 
|---|---|---|---|
| container | Container ! | - | Container to publish | 
| keyId | String | - | AWS_ACCESS_KEY_ID | 
| key | String | - | AWS_SECRET_ACCESS_KEY | 
| token | String | - | AWS_SESSION_TOKEN | 
| tag | String ! | - | The image name assigned to the container before uploading (should start with an ECR address and optionally include a :tag) | 
| region | String | "us-east-1" | Default region | 
Example
dagger -m github.com/dariusj1/daggerverse/aws-ecr-push@99aeccded6a2311ca33412e8e5497c3275f4ff75 call \
 publish --container IMAGE:TAG --tag stringfunc (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
| Name | Type | Default Value | Description | 
|---|---|---|---|
| container | Container ! | - | No description provided | 
| tag | String ! | - | No description provided | 
| ecrSecret | String ! | - | No description provided | 
Example
dagger -m github.com/dariusj1/daggerverse/aws-ecr-push@99aeccded6a2311ca33412e8e5497c3275f4ff75 call \
 publish-container --container IMAGE:TAG --tag string --ecr-secret stringfunc (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, 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
| Name | Type | Default Value | Description | 
|---|---|---|---|
| root | Directory ! | - | No description provided | 
| dockerfile | String | "Dockerfile" | No description provided | 
Example
dagger -m github.com/dariusj1/daggerverse/aws-ecr-push@99aeccded6a2311ca33412e8e5497c3275f4ff75 call \
 build-dockerfile --root DIR_PATHfunc (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()
		.build_dockerfile(root)
	)@func()
example(root: Directory): Container {
	return dag
		.awsEcrPush()
		.buildDockerfile(root)
}