diff --git a/.github/workflows/helm-vib.yaml b/.github/workflows/helm-vib.yaml index 862aa4ad77..5bbeb6f5b8 100644 --- a/.github/workflows/helm-vib.yaml +++ b/.github/workflows/helm-vib.yaml @@ -38,6 +38,10 @@ jobs: include: - target-platform: gke target-platform-id: 91d398a2-25c4-4cda-8732-75a3cfc179a1 + target-pipeline: vib-platform-verify.json + - target-platform: openshift + target-platform-id: ebac9e0d-3931-4515-ba54-e6adada1f174 + target-pipeline: vib-platform-verify-openshift.json fail-fast: false name: Verify chart in ${{ matrix.target-platform}} steps: @@ -47,6 +51,6 @@ jobs: repository: ${{ github.event.pull_request.head.repo.full_name }} - uses: vmware-labs/vmware-image-builder-action@0.4.7 with: - pipeline: vib-platform-verify.json + pipeline: ${{ matrix.target-pipeline }} env: TARGET_PLATFORM: ${{ matrix.target-platform-id }} diff --git a/.vib/vib-platform-verify-openshift.json b/.vib/vib-platform-verify-openshift.json new file mode 100644 index 0000000000..e725dffc99 --- /dev/null +++ b/.vib/vib-platform-verify-openshift.json @@ -0,0 +1,37 @@ +{ + "phases": { + "package": { + "context": { + "resources": { + "url": "{SHA_ARCHIVE}", + "path": "/helm/sealed-secrets" + } + }, + "actions": [ + { + "action_id": "helm-package" + } + ] + }, + "verify": { + "context": { + "resources": { + "url": "{SHA_ARCHIVE}", + "path": "/.vib/" + }, + "runtime_parameters": "IyMgQ3JlYXRlIFNlYWxlZCBTZWNyZXRzIGNvbnRyb2xsZXIgc2hvdWxkIGJlIGNyZWF0ZWQKY3JlYXRlQ29udHJvbGxlcjogdHJ1ZQojIyBTZWNyZXQgY29udGFpbmluZyB0aGUga2V5IHVzZWQgdG8gZW5jcnlwdCBzZWNyZXRzCnNlY3JldE5hbWU6ICJzZWFsZWQtc2VjcmV0cy1rZXkiCiMjIFJlbmV3IGtleXMgZXZlcnkgd2VlawprZXlyZW5ld3BlcmlvZDogIjE2OGgiCmNvbnRhaW5lclNlY3VyaXR5Q29udGV4dDoKICBlbmFibGVkOiB0cnVlCiAgcmVhZE9ubHlSb290RmlsZXN5c3RlbTogdHJ1ZQogIHJ1bkFzTm9uUm9vdDogdHJ1ZQogIHJ1bkFzVXNlcjogbnVsbApwb2RTZWN1cml0eUNvbnRleHQ6CiAgZW5hYmxlZDogZmFsc2UKc2VydmljZToKICB0eXBlOiBMb2FkQmFsYW5jZXIKICBwb3J0OiA4MAo=", + "target_platform": { + "target_platform_id": "{TARGET_PLATFORM}" + } + }, + "actions": [ + { + "action_id": "health-check", + "params": { + "endpoint": "lb-sealed-secrets-http" + } + } + ] + } + } +}