aws-ecr-push
No long description provided.
Installation
dagger install github.com/dariusj1/daggerverse/aws-ecr-push@ff30733e902cf8d3c7c00a76f80b6381ddd19aae
Entrypoint
Return Type
AwsEcrPush
Example
dagger -m github.com/dariusj1/daggerverse/aws-ecr-push@ff30733e902cf8d3c7c00a76f80b6381ddd19aae 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
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory ! | - | Path to a source directory |
dockerfile | String | "Dockerfile" | Path to a Dockerfile to build against |
context | String | "./" | Path to a root context directory for the Dockerfile build |
token | Secret ! | - | 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@ff30733e902cf8d3c7c00a76f80b6381ddd19aae 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
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory ! | - | Path to a source directory for the Dockerfile build |
dockerfile | String | "Dockerfile" | Path to a Dockerfile to build against |
context | String | "./" | Path to a root context directory for the Dockerfile build |
keyId | Secret ! | - | AWS_ACCESS_KEY_ID |
key | Secret ! | - | AWS_SECRET_ACCESS_KEY |
token | Secret ! | - | 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@ff30733e902cf8d3c7c00a76f80b6381ddd19aae 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
Name | Type | Default Value | Description |
---|---|---|---|
container | Container ! | - | Container to publish |
token | Secret ! | - | 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@ff30733e902cf8d3c7c00a76f80b6381ddd19aae 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
Name | Type | Default Value | Description |
---|---|---|---|
container | Container ! | - | Container to publish |
keyId | Secret ! | - | AWS_ACCESS_KEY_ID |
key | Secret ! | - | AWS_SECRET_ACCESS_KEY |
token | Secret ! | - | 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@ff30733e902cf8d3c7c00a76f80b6381ddd19aae 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
Name | Type | Default Value | Description |
---|---|---|---|
container | Container ! | - | No description provided |
tag | String ! | - | No description provided |
ecrSecret | Secret ! | - | No description provided |
Example
dagger -m github.com/dariusj1/daggerverse/aws-ecr-push@ff30733e902cf8d3c7c00a76f80b6381ddd19aae 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
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory ! | - | No description provided |
dockerfile | String | "Dockerfile" | No description provided |
context | String | "./" | Path to a root context directory for the Dockerfile build |
Example
dagger -m github.com/dariusj1/daggerverse/aws-ecr-push@ff30733e902cf8d3c7c00a76f80b6381ddd19aae 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)
}