-
Notifications
You must be signed in to change notification settings - Fork 718
executable file
·66 lines (53 loc) · 1.6 KB
/
pull-request.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
name: CI-pullrequest
on:
pull_request:
branches:
- dev-v*
- release-v*
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout base branch
uses: actions/checkout@v4
- name: Checkout PR
run: gh pr checkout ${{ github.event.pull_request.number }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout into branch
run: git checkout -b staging-pr-workflow
- name: Pull scripts
run: sudo make pull-scripts
- name: Check release.yaml
run: sudo make check-release-yaml
- name: Validate
run: sudo make validate remote=true
check-images:
name: Check Container Images
runs-on: ubuntu-latest
steps:
- name: Checkout base branch
uses: actions/checkout@v4
- name: Checkout PR
run: gh pr checkout ${{ github.event.pull_request.number }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Check container images
run: make check-images
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
check-rc:
name: Check RC Images and Charts
runs-on: ubuntu-latest
steps:
- name: Checkout base branch
uses: actions/checkout@v4
- name: Checkout PR
run: gh pr checkout ${{ github.event.pull_request.number }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Check RC images and charts
run: make check-rc
if: startsWith(github.ref, 'refs/heads/release-v')