atmos.yaml1.1 KB
View on GitHubbase_path: "."
stacks:
base_path: "stacks"
included_paths:
- "deploy/**/*"
name_template: "{{.vars.stage}}"
components:
script:
base_path: "components/script"
commands:
- name: script
description: "Run script components"
arguments:
- name: component
description: "Component name"
provides: component
required: true
flags:
- name: stack
shorthand: s
description: "Stack name"
provides: stack
required: true
component:
type: script
steps:
- 'echo "Component: {{ .Component.component }}"'
- 'echo "Stack: {{ .Component.atmos_stack }}"'
- 'echo "App: {{ .Component.vars.app_name }}"'
- 'echo "Version: {{ .Component.vars.version }}"'
- 'echo "Replicas: {{ .Component.vars.replicas }}"'
# The component `env` section is exported as real environment variables, so steps can
# read $APP_VERSION / $DEPLOY_REGION directly (no need to inline them into the command).
- 'echo "Env: deploying v$APP_VERSION to $DEPLOY_REGION"'