Skip to content

Commit df3318f

Browse files
♻️ RunsOn! (#765)
2 parents 7625df7 + 1ee3202 commit df3318f

10 files changed

+28
-11
lines changed

examples/snippets/.github/workflows/atmos-components-updater.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ on:
99
jobs:
1010
update:
1111
environment: atmos
12-
runs-on: ["self-hosted", "default"]
12+
runs-on:
13+
- self-hosted
14+
- terraform
1315
steps:
1416
- name: "Checkout source code at current commit"
1517
uses: actions/checkout@v4

examples/snippets/.github/workflows/atmos-terraform-apply-matrix.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ jobs:
3131
atmos-apply:
3232
if: ${{ inputs.stacks != '{include:[]}' }}
3333
name: ${{ matrix.stack_slug }}
34-
runs-on: ["self-hosted", "terraform"]
34+
runs-on:
35+
- self-hosted
36+
- terraform
3537
strategy:
3638
max-parallel: 10
3739
fail-fast: false # Don't fail fast to avoid locking TF State

examples/snippets/.github/workflows/atmos-terraform-apply.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ jobs:
3434
name: Determine Affected Stacks
3535
if: needs.pr.outputs.no-apply == 'false'
3636
needs: ["pr"]
37-
runs-on: ["self-hosted", "terraform"]
37+
runs-on:
38+
- self-hosted
39+
- terraform
3840
steps:
3941
- id: affected
4042
uses: cloudposse/github-action-atmos-affected-stacks@v4

examples/snippets/.github/workflows/atmos-terraform-dispatch.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ permissions:
2828

2929
jobs:
3030
dispatch-id:
31-
runs-on: ["self-hosted", "terraform"]
31+
runs-on:
32+
- self-hosted
33+
- terraform
3234
steps:
3335
- name: echo Distinct ID ${{ github.event.inputs.distinct_id }}
3436
run: echo ${{ github.event.inputs.distinct_id }}

examples/snippets/.github/workflows/atmos-terraform-drift-detection.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ permissions:
1717
jobs:
1818
select-components:
1919
name: Select Components
20-
runs-on: ["self-hosted", "terraform"]
20+
runs-on:
21+
- self-hosted
22+
- terraform
2123
steps:
2224
- name: Selected Components
2325
id: components
@@ -52,7 +54,7 @@ jobs:
5254
needs: ["plan-atmos-components"]
5355
if: always()
5456
name: Reconcile issues
55-
runs-on: ["self-hosted", "terraform"]
57+
runs-on: ['self-hosted', 'terraform']
5658
steps:
5759
- name: Drift Detection
5860
uses: cloudposse/github-action-atmos-terraform-drift-detection@v2

examples/snippets/.github/workflows/atmos-terraform-drift-remediation.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ jobs:
1616
remediate-drift:
1717
if: github.event.action == 'labeled' && contains(github.event.issue.labels.*.name, 'apply')
1818
name: Remediate Drift
19-
runs-on: ["self-hosted", "terraform"]
19+
runs-on:
20+
- self-hosted
21+
- terraform
2022
steps:
2123
- uses: unfor19/install-aws-cli-action@v1
2224
- name: Remediate Drift
@@ -35,7 +37,7 @@ jobs:
3537
) &&
3638
!contains(github.event.issue.labels.*.name, 'remediated')
3739
name: Discard Drift
38-
runs-on: ["self-hosted", "terraform"]
40+
runs-on: ['self-hosted', 'terraform']
3941
steps:
4042
- name: Discard Drift
4143
uses: cloudposse/github-action-atmos-terraform-drift-remediation@v2

examples/snippets/.github/workflows/atmos-terraform-plan-matrix.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ jobs:
4141
atmos-plan:
4242
if: ${{ inputs.stacks != '{include:[]}' }}
4343
name: ${{ matrix.stack_slug }}
44-
runs-on: ["self-hosted", "terraform"]
44+
runs-on:
45+
- self-hosted
46+
- terraform
4547
continue-on-error: ${{ inputs.continue-on-error == 'true' }}
4648
strategy:
4749
max-parallel: 10

examples/snippets/.github/workflows/atmos-terraform-plan.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ jobs:
1818
atmos-affected:
1919
if: ${{ !contains( github.event.pull_request.labels.*.name, 'no-plan') }}
2020
name: Determine Affected Stacks
21-
runs-on: ["self-hosted", "terraform"]
21+
runs-on:
22+
- self-hosted
23+
- terraform
2224
steps:
2325
- id: affected
2426
uses: cloudposse/github-action-atmos-affected-stacks@v4

examples/snippets/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
ARG GEODESIC_VERSION=4.3.0
33
ARG GEODESIC_OS=debian
44
# https://github.com/cloudposse/atmos
5-
ARG ATMOS_VERSION=1.157.0
5+
ARG ATMOS_VERSION=1.179.0
66
# This should match the version set in stacks/catalog/spacelift.yaml
77
# This should match the version set in .github/workflows/auto-format.yaml
88
ARG TF_1_VERSION=1.5.7

examples/snippets/stacks/workflows/identity.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ workflows:
4949
type: shell
5050
command: |-
5151
set -e
52+
: "${ATMOS_BASE_PATH:=.}"
5253
AWS_CONFIG_VERSION="1.227.0"
5354
printf "Updating AWS Config in $ATMOS_BASE_PATH/rootfs/usr/local/bin/aws-config\n"
5455
printf "Note: Rebuild Geodesic to apply script updates\n"

0 commit comments

Comments
 (0)