Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): use GitHub hosted runner to run actions #5981

Merged
merged 3 commits into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading