Skip to content

Commit

Permalink
Move configs to atmos.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
goruha committed Feb 15, 2024
1 parent 1067805 commit 7f6abe4
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 83 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-matrix-2-levels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- uses: ./
id: current
with:
atmos-gitops-config-path: "./tests/atmos-gitops.yaml"
atmos-config-path: "./tests"
select-filter: '.settings.github.actions_enabled // false'
nested-matrices-count: '2'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-matrix-3-levels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- uses: ./
id: current
with:
atmos-gitops-config-path: "./tests/atmos-gitops.yaml"
atmos-config-path: "./tests"
select-filter: '.settings.github.actions_enabled // false'
nested-matrices-count: '3'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-positive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- uses: ./
id: current
with:
atmos-gitops-config-path: "./tests/atmos-gitops.yaml"
atmos-config-path: "./tests"

outputs:
selected-components: "${{ steps.current.outputs.selected-components }}"
Expand Down
69 changes: 0 additions & 69 deletions atmos.yaml

This file was deleted.

11 changes: 0 additions & 11 deletions tests/atmos-gitops.yaml

This file was deleted.

17 changes: 17 additions & 0 deletions tests/atmos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,23 @@ stacks:
# Can also be set using `ATMOS_STACKS_NAME_PATTERN` ENV var
name_pattern: "{tenant}-{environment}-{stage}"

integrations:
github:
gitops:
terraform-version: 1.5.2
infracost-enabled: false
storage:
region: us-east-2
bucket: cptest-core-ue2-auto-gitops
table: cptest-core-ue2-auto-gitops-plan-storage
role: arn:aws:iam::xxxxxxxxxxxx:role/cptest-core-ue2-auto-gitops-gha
role:
plan: arn:aws:iam::yyyyyyyyyyyy:role/cptest-core-gbl-identity-gitops
apply: arn:aws:iam::yyyyyyyyyyyy:role/cptest-core-gbl-identity-gitops
matrix:
sort-by: .stack_slug
group-by: .stack_slug | split("-") | [.[0], .[2]] | join("-")

workflows:
# Can also be set using `ATMOS_WORKFLOWS_BASE_PATH` ENV var, or `--workflows-dir` command-line arguments
# Supports both absolute and relative paths
Expand Down

0 comments on commit 7f6abe4

Please sign in to comment.