-
Notifications
You must be signed in to change notification settings - Fork 142
Expand file tree
/
Copy pathgithub-self-hosted-runner-testing.yaml
More file actions
38 lines (35 loc) · 1.39 KB
/
github-self-hosted-runner-testing.yaml
File metadata and controls
38 lines (35 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# The name of the pipeline. Must be unique.
name: "Terraform - AWS"
on:
push:
# only run when files in this path changes
# https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions#example-using-positive-and-negative-patterns-1
paths:
- 'terraform-modules/aws/helm/github_runner/**'
branches:
- main
pull_request:
# only run when files in this path changes
# https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions#example-using-positive-and-negative-patterns-1
paths:
- 'terraform-modules/aws/helm/github_runner/**'
jobs:
## This generates a matrix of changed directory to run Terraform on
self_hosted_runner:
#runs-on: ubuntu-latest
# Label from the CRD deployment: https://github.com/actions-runner-controller/actions-runner-controller#runner-labels
runs-on: custom-runner
env:
# The path that you want to construct the matrix on. Only files in this
# path that has changed will be included in.
TERRAFORM_CHECK_PATH: terraform-environments/aws/dev
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Runing on self hosted runner
run: |
echo hi
ps aux
curl -v https://651D35E97B291CC344F098C47028D880.gr7.us-west-2.eks.amazonaws.com -k