forked from bitnami/charts
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (52 loc) · 2.19 KB
/
ci-pipeline-extra-redis.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
# Multiple deployments pipelines are custom per asset. All single deployments pipelines are handled by ci-pipeline.yaml
name: 'CI Pipeline extra Redis'
on: # rebuild any PRs and main branch changes
pull_request_target:
types:
- reopened
- synchronize
- labeled
branches:
- master
paths:
- 'bitnami/redis/*'
env:
CSP_API_URL: https://console.cloud.vmware.com
CSP_API_TOKEN: ${{ secrets.CSP_API_TOKEN }}
VIB_PUBLIC_URL: https://cp.bromelia.vmware.com
jobs:
vib-verify-sentinel:
# Given performance issues of the action feature on GH's side, we need to be very restrictive in the job's triggers:
# -> The pipeline was triggered due to a label addition and said label was the 'verify' one OR
# -> The pipeline was NOT triggered due to a label addition but the PR already contains the 'verify' one
if: |
github.event.action == 'labeled' && github.event.label.name == 'verify' ||
github.event.action != 'labeled' && contains(github.event.pull_request.labels.*.name, 'verify')
runs-on: ubuntu-latest
name: Verify Redis Sentinel on Tanzu Kubernetes Grid
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- uses: vmware-labs/vmware-image-builder-action@main
with:
pipeline: redis/sentinel/vib-verify.json
env:
VIB_ENV_TARGET_PLATFORM: 91d398a2-25c4-4cda-8732-75a3cfc179a1
vib-verify-replica:
if: |
github.event.action == 'labeled' && github.event.label.name == 'verify' ||
github.event.action != 'labeled' && contains(github.event.pull_request.labels.*.name, 'verify')
runs-on: ubuntu-latest
name: Verify Redis Replica on Tanzu Kubernetes Grid
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- uses: vmware-labs/vmware-image-builder-action@main
with:
pipeline: redis/replicas/vib-verify.json
env:
VIB_ENV_TARGET_PLATFORM: 91d398a2-25c4-4cda-8732-75a3cfc179a1