mirror of
https://github.com/wahyd4/charts.git
synced 2026-08-18 01:25:58 +10:00
Description of the change This PR adds integration with the VMware Image Builder Github actions for package, lint and trivy. It will also remove the redundant actions from helm/ct. The conditions for launching the VIB pipeline are: PRs need to affect only one chart PRs need to bump the chart version It has been tested with the following examples: Successful chart bumps (the pipeline runs): Bump argo-workflows javsalgar/charts-1#1 Bump bitnami/nginx-ingress-controller javsalgar/charts-1#7 Two chart bumps (the pipeline gets skipped): Bump bitnami/pytorch and bitnami/haproxy javsalgar/charts-1#3 Changes without version bump (the action fails): Update grafana readme javsalgar/charts-1#5 Change wavefront-prometheus-adapter README javsalgar/charts-1#2 Change bitnami/drupal description javsalgar/charts-1#8 Changes in the repo root (the action does not run): Change root repo license javsalgar/charts-1#4 Create a file in the bitnami/ folder without affecting a chart (the pipeline gets skipped): Change root repo license javsalgar/charts-1#4
57 lines
1.9 KiB
YAML
57 lines
1.9 KiB
YAML
name: 'vib'
|
|
on: # rebuild any PRs and main branch changes
|
|
pull_request_target:
|
|
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-standalone: # verify in GKE
|
|
runs-on: ubuntu-latest
|
|
environment: vmware-image-builder
|
|
name: Redis Standalone
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
ref: ${{github.event.pull_request.head.ref}}
|
|
repository: ${{github.event.pull_request.head.repo.full_name}}
|
|
- uses: vmware-samples/vmware-image-builder-examples/vib-action@main
|
|
with:
|
|
pipeline: redis/standalone/vib-platform-verify.json
|
|
env:
|
|
TARGET_PLATFORM: 91d398a2-25c4-4cda-8732-75a3cfc179a1
|
|
|
|
vib-verify-sentinel: # verify in AKS
|
|
runs-on: ubuntu-latest
|
|
environment: vmware-image-builder
|
|
name: Redis Sentinel
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
ref: ${{github.event.pull_request.head.ref}}
|
|
repository: ${{github.event.pull_request.head.repo.full_name}}
|
|
- uses: vmware-samples/vmware-image-builder-examples/vib-action@main
|
|
with:
|
|
pipeline: redis/sentinel/vib-platform-verify.json
|
|
env:
|
|
TARGET_PLATFORM: 7b13a7bb-011c-474f-ad71-8152fc321b9e
|
|
|
|
vib-verify-replica: # verify in TKG
|
|
runs-on: ubuntu-latest
|
|
environment: vmware-image-builder
|
|
name: Redis Replica
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
ref: ${{github.event.pull_request.head.ref}}
|
|
repository: ${{github.event.pull_request.head.repo.full_name}}
|
|
- uses: vmware-samples/vmware-image-builder-examples/vib-action@main
|
|
with:
|
|
pipeline: redis/replicas/vib-platform-verify.json
|
|
env:
|
|
TARGET_PLATFORM: 7ddab896-2e4e-4d58-a501-f79897eba3a0
|