Skip to content
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
8 changes: 4 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ on:
pull_request:
branches:
- master
- release
- release-*

jobs:
backend:
name: Backend
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- uses: actions/setup-go@v3
with:
go-version: "1.18"
Expand Down Expand Up @@ -47,14 +47,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
# https://pnpm.io/continuous-integration#github-actions
- name: Setup PNPM
uses: pnpm/action-setup@v2
with:
version: 8
- name: Setup Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: "18"
cache: "pnpm"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/manual-create-pd-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
name: Create PD PR - ${{ matrix.branch }}
steps:
- name: Check out PD code base
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: tikv/pd
ref: ${{ matrix.branch }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
# https://pnpm.io/continuous-integration#github-actions
- name: Setup PNPM
uses: pnpm/action-setup@v2
with:
version: 8
- name: Setup Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: "18"
cache: "pnpm"
Expand Down
34 changes: 16 additions & 18 deletions .github/workflows/test-docker-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,32 +11,30 @@ concurrency:
cancel-in-progress: true
jobs:
test-build-docker-image:
runs-on: ubuntu-latest
runs-on: ${{ matrix.platform == 'linux/arm64' && 'ubuntu-24.04-arm' || 'ubuntu-24.04' }}
strategy:
matrix:
platform: [linux/amd64, linux/arm64]
remote_dockerfile: # download from: https://github.com/PingCAP-QE/artifacts/tree/main/dockerfiles/cd/builders/tidb-dashboard
- Dockerfile # builder is rocky linux 8
- centos7/Dockerfile # builder is centos 7
fail-fast: true
steps:
- name: Checkout code
uses: actions/checkout@v3
- # Add support for more platforms with QEMU (optional)
# https://github.com/docker/setup-qemu-action
name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: actions/checkout@v4

- name: Read VERSION file
id: getversion
run: echo "::set-output name=version::$(git describe --tags --dirty --always)"

- name: Download Dockerfile
run: |
wget "https://github.com/PingCAP-QE/artifacts/raw/refs/heads/main/dockerfiles/cd/builders/tidb-dashboard/${{ matrix.remote_dockerfile }}" -O Dockerfile
- name: Build
uses: docker/build-push-action@v3
uses: docker/build-push-action@v6
with:
file: ./dockerfiles/centos7.Dockerfile
context: .
# Currently github action runner only supports linux/amd64, it take a lot of time to build multi-arch image.
# So we only build amd64 image for now.
platforms: linux/amd64
push: false
context: .
file: Dockerfile
platforms: ${{ matrix.platform }}
tags: pingcap/tidb-dashboard:${{ steps.getversion.outputs.version }}
no-cache: false
pull: false
cache-from: type=gha
cache-to: type=gha,mode=max
10 changes: 5 additions & 5 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
pull_request:
branches:
- master
- release
- release-*

jobs:
backend_ut:
Expand All @@ -16,7 +16,7 @@ jobs:
timeout-minutes: 10
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- uses: actions/setup-go@v3
with:
go-version: "1.18"
Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:
name: Backend - Integration - TiDB@${{ matrix.tidb_version }}
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- uses: actions/setup-go@v3
with:
go-version: "1.18"
Expand Down Expand Up @@ -101,14 +101,14 @@ jobs:
# name: E2E - TiDB@${{ matrix.tidb_version }}${{ !matrix.without_ngm && '+ngm' || '' }}
# steps:
# - name: Checkout code
# uses: actions/checkout@v3
# uses: actions/checkout@v4
# # https://pnpm.io/continuous-integration#github-actions
# - name: Setup PNPM
# uses: pnpm/[email protected]
# with:
# version: 7
# - name: Setup Node.js
# uses: actions/setup-node@v2
# uses: actions/setup-node@v4
# with:
# node-version: "16"
# cache: "pnpm"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/upload-e2e-snapshots.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
tidb_version: v5.0.0
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.ref }}
# https://pnpm.io/continuous-integration#github-actions
Expand All @@ -38,7 +38,7 @@ jobs:
with:
version: 8
- name: Setup Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: "18"
cache: "pnpm"
Expand Down
Loading