-
Notifications
You must be signed in to change notification settings - Fork 3
84 lines (68 loc) · 2.55 KB
/
pull-cd-builder-images2.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: Build multi stage images
on:
issue_comment:
types: [created]
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false
jobs:
just-build:
# check if the comments come from pull request, exclude those from issue.
if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, '/just msb-') }}
name: test building with multi stages
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Checkout Pull Request
run: gh pr checkout ${{ github.event.issue.number }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# https://github.com/docker/setup-qemu-action
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
# https://github.com/docker/setup-buildx-action
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
- name: Set up just tool
uses: extractions/setup-just@v2
with:
github-token: ${{ secrets.MY_GITHUB_TOKEN }}
just-version: 1.34.0 # optional semver specification, otherwise latest
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Testing for tidb
if: contains(github.event.comment.body, 'msb-tidb')
run: just msb-tidb
- name: Testing for pd
if: contains(github.event.comment.body, 'msb-pd')
run: just msb-pd
- name: Testing for CDC of tiflow
if: contains(github.event.comment.body, 'msb-cdc')
run: just msb-cdc
- name: Testing for DM of tiflow
if: contains(github.event.comment.body, 'msb-dm')
run: just msb-dm
- name: Testing for TiDB Dashboard
if: contains(github.event.comment.body, 'msb-tidb-dashboard')
run: just msb-tidb-dashboard
- name: Testing for TiDB Operator
if: contains(github.event.comment.body, 'msb-tidb-operator')
run: just msb-tidb-operator
- name: Testing for ng-monitoring
if: contains(github.event.comment.body, 'msb-ng-monitoring')
run: just msb-ng-monitoring
- name: Testing for tiflash # slow
if: contains(github.event.comment.body, 'msb-tiflash')
run: just msb-tiflash
- name: Testing for tikv # slow
if: contains(github.event.comment.body, 'msb-tikv')
run: just msb-tikv