File tree Expand file tree Collapse file tree 2 files changed +42
-0
lines changed
terraform-modules/aws/helm/github_runner Expand file tree Collapse file tree 2 files changed +42
-0
lines changed Original file line number Diff line number Diff line change 1+ # The name of the pipeline. Must be unique.
2+ name : " Terraform - AWS"
3+
4+ on :
5+ push :
6+ # only run when files in this path changes
7+ # https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions#example-using-positive-and-negative-patterns-1
8+ paths :
9+ - ' terraform-modules/aws/helm/github_runner/**'
10+ branches :
11+ - main
12+ pull_request :
13+ # only run when files in this path changes
14+ # https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions#example-using-positive-and-negative-patterns-1
15+ paths :
16+ - ' terraform-modules/aws/helm/github_runner/**'
17+
18+ jobs :
19+ # # This generates a matrix of changed directory to run Terraform on
20+ generate_matrix :
21+ # runs-on: ubuntu-latest
22+ runs-on : custom-runner
23+ env :
24+ # The path that you want to construct the matrix on. Only files in this
25+ # path that has changed will be included in.
26+ TERRAFORM_CHECK_PATH : terraform-environments/aws/dev
27+ steps :
28+ - name : Checkout
29+ uses : actions/checkout@v2
30+ with :
31+ fetch-depth : 2
32+
33+ - name : get parent directory and set matrix
34+ id : set-matrix
35+ run : |
36+ echo hi
Original file line number Diff line number Diff line change @@ -151,6 +151,12 @@ resource "kubernetes_manifest" "runnerDeployment" {
151151 spec = {
152152 repository = " ManagedKube/kubernetes-ops"
153153 env = []
154+
155+ # The labels on how to target this runner from the GHA's workflow files
156+ # Doc: https://github.com/actions-runner-controller/actions-runner-controller#runner-labels
157+ labels = [
158+ " custom-runner"
159+ ]
154160 }
155161 }
156162 }
You can’t perform that action at this time.
0 commit comments