forked from bitnami/charts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jose Antonio Carmona <[email protected]>
- Loading branch information
Showing
583 changed files
with
2,346 additions
and
8,155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,34 +75,12 @@ 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 | ||
runtime_parameters_file="" | ||
if [[ -f "charts/.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 }} | ||
name: 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: ${{ 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 }} | ||
VIB_ENV_S3_URL: s3://${{ secrets.AWS_S3_BUCKET }}/bitnami | ||
VIB_ENV_S3_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
VIB_ENV_S3_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
|
@@ -179,7 +157,7 @@ jobs: | |
name: Notify unsuccessful CD run | ||
steps: | ||
- name: Notify in Slack channel | ||
if: ${{ needs.vib-publish.result != 'success' || needs.update-index.result != 'success' }} | ||
if: ${{ needs.update-index.result != 'success' }} | ||
uses: slackapi/[email protected] | ||
with: | ||
channel-id: ${{ secrets.CD_SLACK_CHANNEL_ID }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Copyright VMware, Inc. | ||
# SPDX-License-Identifier: APACHE-2.0 | ||
|
||
name: '[CI/CD] Retry release PRs' | ||
on: | ||
schedule: | ||
# Every 2 hours | ||
- cron: '0 */2 * * *' | ||
# Remove all permissions by default | ||
permissions: {} | ||
jobs: | ||
retry-failed-pr-releases: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: write | ||
steps: | ||
- name: Retry "CI Pipeline" failed runs in releases PRs | ||
env: | ||
WORKFLOW_ID: "35553382" | ||
TEMP_FILE: "${{runner.temp}}/failed_runs.json" | ||
ACTIONS_API_ENDPOINT: "${{ github.api_url }}/repos/${{ github.repository }}/actions" | ||
run: | | ||
# Obtain "CI Pipeline" failed runs and filter those from release PRs with less than 3 attempts | ||
curl -H 'Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' -X GET -Lkso ${{ env.TEMP_FILE }} ${{ env.ACTIONS_API_ENDPOINT }}/workflows/${{ env.WORKFLOW_ID }}/runs?status=failure | ||
readarray -t failed_runs_ids < <(jq '.workflow_runs[] | select((.run_attempt < 3) and (.display_title | contains("Release")) and (.head_commit.author.email=="[email protected]")).id' ${{ env.TEMP_FILE }}) | ||
for run_id in "${failed_runs_ids[@]:0:15}"; do | ||
echo "Retrying workflow $(jq --argjson id $run_id '.workflow_runs[] | select(.id==$id) | .html_url' ${{ env.TEMP_FILE }})" | ||
curl -H 'Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' -X POST -Lks ${{ env.ACTIONS_API_ENDPOINT }}/workflows/runs/${run_id}/rerun | ||
done |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.