mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-09-22 23:53:12 +08:00
ci: requiring the 'ok-to-test' label for running some workflows
As of now, the 'e2e-k3s' workflow will require the 'ok-to-test' label in order to get triggered. In addition to that, on each change to the PR on the relevant files, Github will remove the label from it and it will be required again. Signed-off-by: Yoni Bettan <ybettan@redhat.com>
This commit is contained in:
parent
b433d4ad4a
commit
e4ef059d19
@ -1,7 +1,8 @@
|
|||||||
name: e2e-k8s
|
name: e2e-k3s
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
types: [labeled]
|
||||||
paths:
|
paths:
|
||||||
- 'pkg/query-service/**'
|
- 'pkg/query-service/**'
|
||||||
- 'frontend/**'
|
- 'frontend/**'
|
||||||
@ -10,6 +11,7 @@ jobs:
|
|||||||
|
|
||||||
image-build-and-push-query-service:
|
image-build-and-push-query-service:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: ${{ github.event.label.name == 'ok-to-test' }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
@ -31,6 +33,7 @@ jobs:
|
|||||||
|
|
||||||
image-build-and-push-frontend:
|
image-build-and-push-frontend:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: ${{ github.event.label.name == 'ok-to-test' }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
@ -61,6 +64,7 @@ jobs:
|
|||||||
|
|
||||||
deploy-on-k3s-cluster:
|
deploy-on-k3s-cluster:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: ${{ github.event.label.name == 'ok-to-test' }}
|
||||||
needs:
|
needs:
|
||||||
- image-build-and-push-query-service
|
- image-build-and-push-query-service
|
||||||
- image-build-and-push-frontend
|
- image-build-and-push-frontend
|
20
.github/workflows/remove-label.yaml
vendored
Normal file
20
.github/workflows/remove-label.yaml
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
name: remove-label
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types: [synchronize]
|
||||||
|
paths:
|
||||||
|
- 'pkg/query-service/**'
|
||||||
|
- 'frontend/**'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
remove:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Remove label
|
||||||
|
uses: buildsville/add-remove-label@v1
|
||||||
|
with:
|
||||||
|
label: ok-to-test
|
||||||
|
type: remove
|
||||||
|
token: ${{ secrets.REPO_ACCESS_TOKEN }}
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user