Skip to content

Commit

Permalink
chore(ci): use GitHub hosted runner to run actions (#5981)
Browse files Browse the repository at this point in the history
  • Loading branch information
csuzhangxc authored Dec 18, 2024
1 parent 45798fe commit 98d923a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 21 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: ci
on:
push:
branches:
- main
- v2
pull_request:
branches:
- main
- v2
types: [review_requested, ready_for_review, synchronize]

concurrency:
Expand All @@ -15,7 +15,7 @@ concurrency:

jobs:
image:
runs-on: self-hosted
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: cache image builder
Expand All @@ -24,12 +24,6 @@ jobs:
path: ./_output/cache
key: ${{ runner.os }}-image-cache

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- uses: docker/setup-qemu-action@v3
with:
image: gcr.io/pingcap-public/third-party/tonistiigi/binfmt:latest
Expand All @@ -50,7 +44,7 @@ jobs:
V_PLATFORMS=linux/arm64,linux/amd64 make image
build:
runs-on: self-hosted
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: setup go
Expand All @@ -63,7 +57,7 @@ jobs:
make build
lint:
runs-on: self-hosted
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: setup go
Expand All @@ -81,7 +75,7 @@ jobs:
make lint
unit:
runs-on: self-hosted
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: setup go
Expand All @@ -94,7 +88,7 @@ jobs:
make unit
verify:
runs-on: self-hosted
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: setup go
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: e2e
on:
pull_request:
branches:
- main
- v2
types: [review_requested, ready_for_review, synchronize]

concurrency:
Expand All @@ -12,7 +12,7 @@ concurrency:

jobs:
e2e:
runs-on: self-hosted
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
Expand All @@ -31,12 +31,6 @@ jobs:
go-version-file: ./go.work
cache-dependency-path: "**/*.sum"

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- uses: docker/setup-qemu-action@v3
with:
image: gcr.io/pingcap-public/third-party/tonistiigi/binfmt:latest
Expand Down

0 comments on commit 98d923a

Please sign in to comment.