ci: Use variable for runner (#2981)
This commit is contained in:
1 parent
96ab199562
commit
876b25fead
10 files changed
+13
-13
No files matched your search
@@ -10,7 +10,7 @@ on:
|
||||
jobs:
|
||||
backport:
|
||||
if: github.event.pull_request.merged
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ${{ fromJSON(vars.RUNNER) }}
|
||||
container: hashicorpdev/backport-assistant:0.2.3
|
||||
steps:
|
||||
- name: Backport changes to stable-website
|
||||
|
||||
@@ -7,7 +7,7 @@ on:
|
||||
jobs:
|
||||
CodeQL-Build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ${{ fromJSON(vars.RUNNER) }}
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
|
||||
@@ -22,7 +22,7 @@ jobs:
|
||||
TF_VAR_repository: boundary
|
||||
TF_VAR_aws_ssh_public_key: ${{ secrets.SSH_KEY_PUBLIC_CI }}
|
||||
TF_TOKEN_app_terraform_io: ${{ secrets.TF_API_TOKEN }}
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ${{ fromJSON(vars.RUNNER) }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up Terraform
|
||||
|
||||
@@ -11,7 +11,7 @@ jobs:
|
||||
# Only run this workflow on pull requests from hashicorp/boundary branches
|
||||
# as we need secrets to install enos.
|
||||
if: "! github.event.pull_request.head.repo.fork"
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ${{ fromJSON(vars.RUNNER) }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.SERVICE_USER_GITHUB_TOKEN }}
|
||||
steps:
|
||||
|
||||
@@ -29,7 +29,7 @@ jobs:
|
||||
- filter: 'e2e_database'
|
||||
- filter: 'e2e_static builder:crt'
|
||||
- filter: 'e2e_static_with_vault builder:crt'
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ${{ fromJSON(vars.RUNNER) }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.SERVICE_USER_GITHUB_TOKEN }}
|
||||
outputs:
|
||||
@@ -201,7 +201,7 @@ jobs:
|
||||
notify:
|
||||
name: Notify
|
||||
needs: enos
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ${{ fromJSON(vars.RUNNER) }}
|
||||
if: ${{ always() && needs.enos.outputs.status == 'failure' }}
|
||||
steps:
|
||||
- name: Send Slack message
|
||||
|
||||
@@ -11,7 +11,7 @@ name: Jira Sync
|
||||
|
||||
jobs:
|
||||
sync:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ${{ fromJSON(vars.RUNNER) }}
|
||||
name: Jira sync
|
||||
steps:
|
||||
- name: Check if community user
|
||||
|
||||
@@ -4,7 +4,7 @@ on:
|
||||
|
||||
jobs:
|
||||
triage:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ${{ fromJSON(vars.RUNNER) }}
|
||||
steps:
|
||||
- uses: actions/labeler@main
|
||||
with:
|
||||
|
||||
@@ -4,7 +4,7 @@ on: ["pull_request"]
|
||||
jobs:
|
||||
lint:
|
||||
name: "Run Linter"
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ${{ fromJSON(vars.RUNNER) }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
|
||||
@@ -16,7 +16,7 @@ jobs:
|
||||
milestone-check:
|
||||
# If there is a `pr/no-milestone` label we ignore this check
|
||||
if: "!contains(github.event.pull_request.labels.*.name, 'pr/no-milestone')"
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ${{ fromJSON(vars.RUNNER) }}
|
||||
steps:
|
||||
- name: Checkout Actions
|
||||
uses: actions/checkout@v3
|
||||
|
||||
@@ -7,7 +7,7 @@ on:
|
||||
jobs:
|
||||
setup:
|
||||
if: ${{ github.event.repository.name == 'boundary' }}
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ${{ fromJSON(vars.RUNNER) }}
|
||||
outputs:
|
||||
regions: ${{steps.setup.outputs.regions}}
|
||||
steps:
|
||||
@@ -33,7 +33,7 @@ jobs:
|
||||
aws-nuke:
|
||||
if: ${{ github.event.repository.name == 'boundary' }}
|
||||
needs: setup
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ${{ fromJSON(vars.RUNNER) }}
|
||||
container:
|
||||
image: rebuy/aws-nuke
|
||||
options:
|
||||
@@ -71,7 +71,7 @@ jobs:
|
||||
check-quotas:
|
||||
if: ${{ github.event.repository.name == 'boundary' }}
|
||||
needs: [ setup, aws-nuke ]
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ${{ fromJSON(vars.RUNNER) }}
|
||||
container:
|
||||
image: jantman/awslimitchecker
|
||||
env:
|
||||
|
||||
Reference in new issue
Block a user