stdlib: renamed verbs to nouns

Signed-off-by: Sam Alba <sam.alba@gmail.com>
This commit is contained in:
Sam Alba
2021-06-15 17:57:14 +02:00
parent 6f9a61386e
commit d1454a9871
10 changed files with 35 additions and 29 deletions

View File

@@ -8,13 +8,14 @@ import (
// Backend configuration
backend: {
// Source code to build this container
source: git.#Repository | dagger.#Artifact @dagger(input)
// Container environment variables
environment: {
[string]: string @dagger(input)
}
[string]: string
} @dagger(input)
// Public hostname (need to match the master domain configures on the loadbalancer)
hostname: string @dagger(input)
@@ -39,16 +40,16 @@ backend: {
dockerfilePath: *"" | string @dagger(input)
// docker build args
dockerBuildArgs: {
[string]: string @dagger(input)
}
[string]: string
} @dagger(input)
}
// Init container runs only once when the main container starts
initContainer: {
command: [...string] @dagger(input)
environment: {
[string]: string @dagger(input)
}
[string]: string
} @dagger(input)
}
}

View File

@@ -9,7 +9,7 @@ database: {
let slug = name
dbType: "mysql" | "postgresql" @dagger(input)
db: rds.#CreateDB & {
db: rds.#Database & {
config: infra.awsConfig
name: slug
dbArn: infra.rdsInstanceArn
@@ -17,7 +17,7 @@ database: {
secretArn: infra.rdsAdminSecretArn
}
user: rds.#CreateUser & {
user: rds.#User & {
config: infra.awsConfig
dbArn: infra.rdsInstanceArn
"dbType": dbType