Skip to content

Commit

Permalink
build: use aws runners
Browse files Browse the repository at this point in the history
Signed-off-by: Tarun Gupta Akirala <[email protected]>
  • Loading branch information
takirala committed Dec 26, 2024
1 parent fad9ae9 commit 4f23fa6
Show file tree
Hide file tree
Showing 12 changed files with 42 additions and 14 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/automerge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/backport.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/kommander-branch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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:
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/kommander-revert-kapps-ref.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/labeler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ on:

jobs:
label-pr:
runs-on: ubuntu-latest
runs-on:
- self-hosted
- small
permissions:
contents: read
pull-requests: write
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/lint-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/rebase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/stale-prs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/update-service-labeler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/validate-licenses.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4f23fa6

Please sign in to comment.