adding in simpler example for config

This commit is contained in:
talksik
2023-06-25 16:22:55 -07:00
parent 7d6abf4d99
commit 451813957d
+42 -316
View File
@@ -1,323 +1,49 @@
# Official documentation: https://docs.digitalocean.com/products/app-platform/reference/app-spec/
jobs:
- envs:
- value:
scope
type
key
instance_count
name
image
registry_type
registry
repository
tag
deploy_on_push
enabled
dockerfile_path
run_command
source_dir
alerts (array)
rule
disabled
operator
value
window
github
repo
branch
deploy_on_push
gitlab
repo
branch
deploy_on_push
build_command
instance_size_slug
log_destinations (array)
name
papertrail
endpoint
datadog
endpoint
api_key
logtail
token
git
repo_clone_url
branch
environment_slug
kind
# send an alert when a deployment fails
alerts:
- rule: DEPLOYMENT_FAILED
# hook up a domain in digitalocean dashboard > networking > domains
# so that you can use it here
# domains:
# - domain: example-app.com
# type: PRIMARY
# features:
# - enable-kata-build
functions (array)
name
source_dir
alerts (array)
rule
disabled
operator
value
window
log_destinations (array)
name
papertrail
endpoint
datadog
endpoint
api_key
logtail
token
routes (array)
path
preserve_path_prefix
cors
allow_headers (array)
expose_headers (array)
max_age
allow_credentials
allow_origins (array)
exact
prefix
regex
allow_methods (array)
git
repo_clone_url
branch
github
repo
branch
deploy_on_push
gitlab
repo
branch
deploy_on_push
envs (array)
value
scope
type
key
# the name of the overall app. remember that an app in digital ocean app-platform
# can include many services
name: example-app-name
region: nyc
services:
# cors security, for when you are deploying a backend app and want to only
# allow a certain frontend domain to access your web service.
# - cors:
# allow_origins:
# - prefix: https://internal.example-app.com
domains (array)
# if you are using docker to deploy, set the path from the root of the
# repository that you have connected
dockerfile_path: Dockerfile
# an obvious one, any environment variables.
envs:
- key: HUGO_VERSION
# this option is used if the build process should have access to variables
scope: RUN_AND_BUILD_TIME
value: 0.81.0
# the repository that you want this app to deploy on. make sure you have
# enabled permissions for this repo in digital ocean dashboard
github:
branch: main
deploy_on_push: true
# <your github username>/<repo name>
repo: example-org/example-repo
http_port: 80
instance_count: 2
instance_size_slug: professional-xs
name: example-service-name
routes:
- path: /
wildcard
zone
minimum_tls_version
domain
type
ingress
rules (array)
match
path
prefix
component
name
preserve_path_prefix
rewrite
redirect
uri
authority
port
scheme
redirect_code
cors
allow_headers (array)
expose_headers (array)
max_age
allow_credentials
allow_origins (array)
exact
prefix
regex
allow_methods (array)
databases (array)
engine
version
cluster_name
db_user
name
production
db_name
region
envs (array)
value
scope
type
key
alerts (array)
rule
disabled
operator
value
window
name
services (array)
health_check
period_seconds
timeout_seconds
success_threshold
failure_threshold
http_path
port
initial_delay_seconds
cors
allow_headers (array)
expose_headers (array)
max_age
allow_credentials
allow_origins (array)
exact
prefix
regex
allow_methods (array)
log_destinations (array)
name
papertrail
endpoint
datadog
endpoint
api_key
logtail
token
git
repo_clone_url
branch
github
repo
branch
deploy_on_push
build_command
envs (array)
value
scope
type
key
source_dir
instance_size_slug
http_port
routes (array)
path
preserve_path_prefix
internal_ports (array)
gitlab
repo
branch
deploy_on_push
alerts (array)
rule
disabled
operator
value
window
instance_count
name
image
registry_type
registry
repository
tag
deploy_on_push
enabled
dockerfile_path
run_command
environment_slug
static_sites (array)
cors
allow_headers (array)
expose_headers (array)
max_age
allow_credentials
allow_origins (array)
exact
prefix
regex
allow_methods (array)
catchall_document
index_document
gitlab
repo
branch
deploy_on_push
build_command
output_dir
github
repo
branch
deploy_on_push
environment_slug
error_document
git
repo_clone_url
branch
dockerfile_path
source_dir
envs (array)
value
scope
type
key
routes (array)
path
preserve_path_prefix
name
workers (array)
git
repo_clone_url
branch
github
repo
branch
deploy_on_push
run_command
source_dir
image
registry_type
registry
repository
tag
deploy_on_push
enabled
environment_slug
instance_size_slug
log_destinations (array)
name
papertrail
endpoint
datadog
endpoint
api_key
logtail
token
gitlab
repo
branch
deploy_on_push
dockerfile_path
build_command
envs (array)
value
scope
type
key
instance_count
alerts (array)
rule
disabled
operator
value
window
name