mirror of
https://github.com/bitnami/charts.git
synced 2026-03-05 06:47:25 +08:00
53 lines
1.7 KiB
YAML
53 lines
1.7 KiB
YAML
name: 'vib'
|
|
on: # rebuild any PRs and main branch changes
|
|
pull_request_target:
|
|
branches:
|
|
- master
|
|
- bitnami:master
|
|
types:
|
|
- assigned
|
|
- opened
|
|
- synchronize
|
|
- reopened
|
|
paths:
|
|
- 'bitnami/wordpress/*'
|
|
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-validate: # make sure chart is linted/safe
|
|
runs-on: ubuntu-latest
|
|
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
|
|
|
|
vib-k8s-verify: # verify in multiple target platforms
|
|
runs-on: ubuntu-latest
|
|
environment: vmware-image-builder
|
|
needs: [vib-validate]
|
|
strategy:
|
|
matrix:
|
|
include:
|
|
- target-platform: gke
|
|
target-platform-id: 91d398a2-25c4-4cda-8732-75a3cfc179a1
|
|
- target-platform: aks
|
|
target-platform-id: 7b13a7bb-011c-474f-ad71-8152fc321b9e
|
|
- target-platform: tkg
|
|
target-platform-id: 7ddab896-2e4e-4d58-a501-f79897eba3a0
|
|
fail-fast: false
|
|
name: K8s verify ${{ matrix.target-platform}}
|
|
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: vib-platform-verify.json
|
|
env:
|
|
TARGET_PLATFORM: ${{ matrix.target-platform-id }}
|