Skip to content

Commit

Permalink
implement tests for demo-component-versions
Browse files Browse the repository at this point in the history
  • Loading branch information
osterman committed Jun 15, 2024
1 parent c04e97a commit 93b11c4
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/demo-component-versions/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
components/terraform/**
28 changes: 28 additions & 0 deletions examples/demo-component-versions/atmos.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# atmos.yaml CLI config
base_path: "./"

components:
terraform:
base_path: "components/terraform"
apply_auto_approve: false
deploy_run_init: true
init_run_reconfigure: true
auto_generate_backend_file: false

stacks:
base_path: "stacks"
included_paths:
- "deploy/**/*"
excluded_paths:
- "**/_defaults.yaml"
name_pattern: "{stage}"

logs:
file: "/dev/stderr"
level: Info

commands:
- name: "test"
description: "Run all tests"
steps:
- atmos vendor pull
Empty file.
38 changes: 38 additions & 0 deletions examples/demo-component-versions/vendor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
apiVersion: atmos/v1
kind: AtmosVendorConfig
metadata:
name: demo-yaml-anchors
description: Example of using YAML anchors with an Atmos vendoring manifest
spec:
# Import other vendor manifests, if necessary
imports: []
bases:
- &library
source: "github.com/cloudposse/atmos.git//examples/demo-library/{{ .Component }}?ref={{.Version}}"
version: "reorg"
targets:
- "components/terraform/{{ .Component }}/{{.Version}}"
included_paths:
- "**/*.tf"
- "**/*.tfvars"
- "**/*.md"
tags:
- demo

- &main
<<: *library
version: "main"

- &v1
<<: *library
version: "reorg"

sources:
- <<: *v1
component: "github/stargazers"

- <<: *v1
component: "weather"

- <<: *v1
component: "ipinfo"

0 comments on commit 93b11c4

Please sign in to comment.