diff --git a/.github/workflows/cd-pipeline.yml b/.github/workflows/cd-pipeline.yml index 0b56a9fc2b..00c75f2ff2 100644 --- a/.github/workflows/cd-pipeline.yml +++ b/.github/workflows/cd-pipeline.yml @@ -181,14 +181,20 @@ jobs: if [[ -f $config_file ]]; then verification_mode="$(cat $config_file | grep 'verification-mode' | cut -d'=' -f2)" fi + runtime_parameters_file="" + if [[ -f ".vib/${{ needs.get-chart.outputs.chart }}/runtime-parameters.yaml" ]]; then + # The path is relative to the .vib folder + runtime_parameters_file="${{ needs.get-chart.outputs.chart }}/runtime-parameters.yaml" + fi echo "verification_mode=${verification_mode}" >> $GITHUB_OUTPUT + echo "runtime_parameters_file=${runtime_parameters_file}" >> $GITHUB_OUTPUT - uses: vmware-labs/vmware-image-builder-action@v0 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 }} - runtime-parameters-file: ${{ needs.get-chart.outputs.chart }}/runtime-parameters.yaml + runtime-parameters-file: ${{ steps.get-asset-vib-config.outputs.runtime_parameters_file }} env: VIB_ENV_TARGET_PLATFORM: ${{ secrets.VIB_ENV_TARGET_PLATFORM }} VIB_ENV_ALTERNATIVE_TARGET_PLATFORM: ${{ secrets.VIB_ENV_ALTERNATIVE_TARGET_PLATFORM }} diff --git a/.github/workflows/ci-pipeline.yml b/.github/workflows/ci-pipeline.yml index 2c0fecffbd..6c08042af6 100644 --- a/.github/workflows/ci-pipeline.yml +++ b/.github/workflows/ci-pipeline.yml @@ -119,13 +119,19 @@ jobs: if [[ -f $config_file ]]; then verification_mode="$(cat $config_file | grep 'verification-mode' | cut -d'=' -f2)" fi + runtime_parameters_file="" + if [[ -f ".vib/${{ needs.get-chart.outputs.chart }}/runtime-parameters.yaml" ]]; then + # The path is relative to the .vib folder + runtime_parameters_file="${{ needs.get-chart.outputs.chart }}/runtime-parameters.yaml" + fi echo "verification_mode=${verification_mode}" >> $GITHUB_OUTPUT + echo "runtime_parameters_file=${runtime_parameters_file}" >> $GITHUB_OUTPUT - uses: vmware-labs/vmware-image-builder-action@v0 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 }} - runtime-parameters-file: ${{ needs.get-chart.outputs.chart }}/runtime-parameters.yaml + runtime-parameters-file: ${{ steps.get-asset-vib-config.outputs.runtime_parameters_file }} env: # Target-Platform used by default VIB_ENV_TARGET_PLATFORM: ${{ secrets.VIB_ENV_TARGET_PLATFORM }}