mirror of
https://github.com/bitnami/charts.git
synced 2026-02-24 14:57:12 +08:00
[bitnami/*] Allow VIB action configuration per asset (#12947)
Signed-off-by: Jose Antonio Carmona <jcarmona@vmware.com> Signed-off-by: Jose Antonio Carmona <jcarmona@vmware.com>
This commit is contained in:
committed by
GitHub
parent
061dcca234
commit
ef9d8046f0
13
.github/workflows/cd-pipeline.yml
vendored
13
.github/workflows/cd-pipeline.yml
vendored
@@ -142,11 +142,24 @@ jobs:
|
||||
name: Checkout Repository
|
||||
with:
|
||||
path: charts
|
||||
- id: get-asset-vib-config
|
||||
name: Get asset-specific configuration for VIB action
|
||||
run: |
|
||||
config_file="charts/.vib/${{ needs.get-chart.outputs.chart }}/vib-action.config"
|
||||
|
||||
# Supported configuration customizations and default values
|
||||
verification_mode="PARALLEL"
|
||||
|
||||
if [[ -f $config_file ]]; then
|
||||
verification_mode="$(cat $config_file | grep 'verification-mode' | cut -d'=' -f2)"
|
||||
fi
|
||||
echo "::set-output name=verification_mode::${verification_mode}"
|
||||
- uses: vmware-labs/vmware-image-builder-action@main
|
||||
name: Verify and publish ${{ needs.get-chart.outputs.chart }}
|
||||
with:
|
||||
pipeline: ${{ needs.get-chart.outputs.chart }}/vib-publish.json
|
||||
config: charts/.vib/
|
||||
verification-mode: ${{ steps.get-asset-vib-config.outputs.verification_mode }}
|
||||
env:
|
||||
VIB_ENV_TARGET_PLATFORM: ${{ secrets.VIB_ENV_TARGET_PLATFORM }}
|
||||
VIB_ENV_ALTERNATIVE_TARGET_PLATFORM: ${{ secrets.VIB_ENV_ALTERNATIVE_TARGET_PLATFORM }}
|
||||
|
||||
13
.github/workflows/ci-pipeline.yml
vendored
13
.github/workflows/ci-pipeline.yml
vendored
@@ -98,10 +98,23 @@ jobs:
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.ref }}
|
||||
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
||||
- id: get-asset-vib-config
|
||||
name: Get asset-specific configuration for VIB action
|
||||
run: |
|
||||
config_file=".vib/${{ needs.get-chart.outputs.chart }}/vib-action.config"
|
||||
|
||||
# Supported configuration customizations and default values
|
||||
verification_mode="PARALLEL"
|
||||
|
||||
if [[ -f $config_file ]]; then
|
||||
verification_mode="$(cat $config_file | grep 'verification-mode' | cut -d'=' -f2)"
|
||||
fi
|
||||
echo "::set-output name=verification_mode::${verification_mode}"
|
||||
- uses: vmware-labs/vmware-image-builder-action@main
|
||||
name: Verify ${{ needs.get-chart.outputs.chart }}
|
||||
with:
|
||||
pipeline: ${{ needs.get-chart.outputs.chart }}/vib-verify.json
|
||||
verification-mode: ${{ steps.get-asset-vib-config.outputs.verification_mode }}
|
||||
env:
|
||||
# Target-Platform used by default
|
||||
VIB_ENV_TARGET_PLATFORM: ${{ secrets.VIB_ENV_TARGET_PLATFORM }}
|
||||
|
||||
Reference in New Issue
Block a user