From 4f23fa61e67367b3358bfe980f917eea0943345d Mon Sep 17 00:00:00 2001 From: Tarun Gupta Akirala Date: Wed, 25 Dec 2024 23:09:42 -0800 Subject: [PATCH] build: use aws runners Signed-off-by: Tarun Gupta Akirala --- .github/workflows/automerge.yaml | 4 +++- .github/workflows/backport.yaml | 4 +++- .github/workflows/code.yml | 4 +++- .github/workflows/kommander-branch.yaml | 8 ++++++-- .github/workflows/kommander-revert-kapps-ref.yaml | 8 ++++++-- .github/workflows/labeler.yaml | 4 +++- .github/workflows/lint-pr.yaml | 4 +++- .github/workflows/rebase.yaml | 4 +++- .github/workflows/stale-prs.yaml | 4 +++- .github/workflows/test.yaml | 4 +++- .github/workflows/update-service-labeler.yaml | 4 +++- .github/workflows/validate-licenses.yaml | 4 +++- 12 files changed, 42 insertions(+), 14 deletions(-) diff --git a/.github/workflows/automerge.yaml b/.github/workflows/automerge.yaml index 82ea3ffc0..3823998b7 100644 --- a/.github/workflows/automerge.yaml +++ b/.github/workflows/automerge.yaml @@ -16,7 +16,9 @@ on: jobs: automerge: - runs-on: ubuntu-latest + runs-on: + - self-hosted + - small steps: - name: Enable auto-merge for automated chart bump PRs or label id: automerge diff --git a/.github/workflows/backport.yaml b/.github/workflows/backport.yaml index 08f603de6..1be60419b 100644 --- a/.github/workflows/backport.yaml +++ b/.github/workflows/backport.yaml @@ -12,7 +12,9 @@ permissions: jobs: backport: name: Backport PR - runs-on: ubuntu-latest + runs-on: + - self-hosted + - small if: | github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'auto-backport') diff --git a/.github/workflows/code.yml b/.github/workflows/code.yml index 41fc8544c..7ef10ddd8 100644 --- a/.github/workflows/code.yml +++ b/.github/workflows/code.yml @@ -6,7 +6,9 @@ permissions: contents: read jobs: size-label: - runs-on: ubuntu-latest + runs-on: + - self-hosted + - small name: Label PR size env: GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/kommander-branch.yaml b/.github/workflows/kommander-branch.yaml index 1b79e5da4..cac33ca9e 100644 --- a/.github/workflows/kommander-branch.yaml +++ b/.github/workflows/kommander-branch.yaml @@ -11,7 +11,9 @@ permissions: jobs: get-kapps-branch-name: - runs-on: ubuntu-latest + runs-on: + - self-hosted + - small if: contains(github.event.pull_request.labels.*.name, 'open-kommander-pr') outputs: branch_name: ${{ steps.branch-name.outputs.branch_name }} @@ -32,7 +34,9 @@ jobs: run: echo ${{ steps.base-branch-name.outputs.base_branch_name }} create-kommander-branch: - runs-on: ubuntu-latest + runs-on: + - self-hosted + - small needs: get-kapps-branch-name if: contains(github.event.pull_request.labels.*.name, 'open-kommander-pr') steps: diff --git a/.github/workflows/kommander-revert-kapps-ref.yaml b/.github/workflows/kommander-revert-kapps-ref.yaml index 92fb82370..1b82e7306 100644 --- a/.github/workflows/kommander-revert-kapps-ref.yaml +++ b/.github/workflows/kommander-revert-kapps-ref.yaml @@ -11,7 +11,9 @@ permissions: jobs: get-kapps-branch-name: - runs-on: ubuntu-latest + runs-on: + - self-hosted + - small if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'open-kommander-pr') outputs: branch_name: ${{ steps.branch-name.outputs.branch_name }} @@ -32,7 +34,9 @@ jobs: run: echo ${{ steps.base-branch-name.outputs.base_branch_name }} update-kommander-branch: - runs-on: ubuntu-latest + runs-on: + - self-hosted + - small needs: get-kapps-branch-name if: success() steps: diff --git a/.github/workflows/labeler.yaml b/.github/workflows/labeler.yaml index 996ec91e2..fa43cd315 100644 --- a/.github/workflows/labeler.yaml +++ b/.github/workflows/labeler.yaml @@ -10,7 +10,9 @@ on: jobs: label-pr: - runs-on: ubuntu-latest + runs-on: + - self-hosted + - small permissions: contents: read pull-requests: write diff --git a/.github/workflows/lint-pr.yaml b/.github/workflows/lint-pr.yaml index f12652414..8524ea1e8 100644 --- a/.github/workflows/lint-pr.yaml +++ b/.github/workflows/lint-pr.yaml @@ -11,7 +11,9 @@ on: jobs: main: name: Validate PR title - runs-on: ubuntu-latest + runs-on: + - self-hosted + - small steps: - uses: amannn/action-semantic-pull-request@v5 env: diff --git a/.github/workflows/rebase.yaml b/.github/workflows/rebase.yaml index 1d07827a1..08aea5aae 100644 --- a/.github/workflows/rebase.yaml +++ b/.github/workflows/rebase.yaml @@ -9,7 +9,9 @@ jobs: rebase: name: Rebase if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/rebase') - runs-on: ubuntu-latest + runs-on: + - self-hosted + - small steps: - name: Checkout code uses: actions/checkout@v4 diff --git a/.github/workflows/stale-prs.yaml b/.github/workflows/stale-prs.yaml index 82828d071..be7d31123 100644 --- a/.github/workflows/stale-prs.yaml +++ b/.github/workflows/stale-prs.yaml @@ -8,7 +8,9 @@ on: jobs: stale: name: Close Stale PRs - runs-on: ubuntu-latest + runs-on: + - self-hosted + - small permissions: issues: write pull-requests: write diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 5ec82b0f3..d2d1c152a 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -10,7 +10,9 @@ on: jobs: test: name: Go Test - runs-on: ubuntu-latest + runs-on: + - self-hosted + - small steps: - name: Checkout code uses: actions/checkout@v4 diff --git a/.github/workflows/update-service-labeler.yaml b/.github/workflows/update-service-labeler.yaml index 6fdee815d..413c448c2 100644 --- a/.github/workflows/update-service-labeler.yaml +++ b/.github/workflows/update-service-labeler.yaml @@ -10,7 +10,9 @@ on: jobs: update-service-labels-yaml: - runs-on: ubuntu-latest + runs-on: + - self-hosted + - small steps: - name: Checkout code uses: actions/checkout@v4 diff --git a/.github/workflows/validate-licenses.yaml b/.github/workflows/validate-licenses.yaml index 541f4dc32..645b86e98 100644 --- a/.github/workflows/validate-licenses.yaml +++ b/.github/workflows/validate-licenses.yaml @@ -14,7 +14,9 @@ on: - main jobs: check-license-yaml: - runs-on: ubuntu-latest + runs-on: + - self-hosted + - small name: Check licenses.d2iq.yaml steps: - name: Checkout code