cue fmt
Signed-off-by: Sam Alba <sam.alba@gmail.com>
This commit is contained in:
parent
90936c450f
commit
b13ac200f3
@ -19,12 +19,12 @@ import (
|
|||||||
// ECR credentials
|
// ECR credentials
|
||||||
credentials: dagger.#RegistryCredentials & {
|
credentials: dagger.#RegistryCredentials & {
|
||||||
username: "AWS"
|
username: "AWS"
|
||||||
secret: out
|
secret: out
|
||||||
}
|
}
|
||||||
|
|
||||||
aws.#Script & {
|
aws.#Script & {
|
||||||
"config": config
|
"config": config
|
||||||
export: "/out"
|
export: "/out"
|
||||||
code: """
|
code: """
|
||||||
aws ecr get-login-password > /out
|
aws ecr get-login-password > /out
|
||||||
"""
|
"""
|
||||||
|
@ -29,15 +29,18 @@ import (
|
|||||||
roleArn: string | *""
|
roleArn: string | *""
|
||||||
|
|
||||||
containerOverrides: {
|
containerOverrides: {
|
||||||
"containerOverrides": [{
|
containerOverrides: [{
|
||||||
name: containerName
|
name: containerName
|
||||||
if len(containerCommand) > 0 {
|
if len(containerCommand) > 0 {
|
||||||
"command": containerCommand
|
command: containerCommand
|
||||||
}
|
}
|
||||||
if len(containerEnvironment) > 0 {
|
if len(containerEnvironment) > 0 {
|
||||||
"environment": [ for k, v in containerEnvironment {"name": k, "value": v}]
|
environment: [ for k, v in containerEnvironment {
|
||||||
}
|
name: k
|
||||||
}]
|
value: v
|
||||||
|
}]
|
||||||
|
}
|
||||||
|
}]
|
||||||
if roleArn != "" {
|
if roleArn != "" {
|
||||||
taskRoleArn: roleArn
|
taskRoleArn: roleArn
|
||||||
}
|
}
|
||||||
@ -45,10 +48,10 @@ import (
|
|||||||
|
|
||||||
aws.#Script & {
|
aws.#Script & {
|
||||||
"config": config
|
"config": config
|
||||||
export: "/out"
|
export: "/out"
|
||||||
files: {
|
files: {
|
||||||
"/inputs/cluster": cluster
|
"/inputs/cluster": cluster
|
||||||
"/inputs/task_arn": taskArn
|
"/inputs/task_arn": taskArn
|
||||||
"/inputs/container_overrides": containerOverrides
|
"/inputs/container_overrides": containerOverrides
|
||||||
}
|
}
|
||||||
code: #"""
|
code: #"""
|
||||||
|
@ -21,7 +21,7 @@ import (
|
|||||||
"/inputs/aws/secret_key": config.secretKey
|
"/inputs/aws/secret_key": config.secretKey
|
||||||
"/inputs/listenerArn": listenerArn
|
"/inputs/listenerArn": listenerArn
|
||||||
if vhost != _|_ {
|
if vhost != _|_ {
|
||||||
"/inputs/vhost": vhost
|
"/inputs/vhost": vhost
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user