1-
21name : " [industrial-edge-insights-vision] Package helm charts weekly "
32run-name : " [industrial-edge-insights-vision] Package helm charts weekly"
43on :
@@ -38,21 +37,48 @@ jobs:
3837
3938 - name : Package Helm Chart
4039 run : |
41- cd edge-ai-suites-repo/manufacturing-ai-suite/industrial-edge-insights-vision/helm
42- helm package . --version ${{ inputs.helm-chart-tag }} --app-version ${{ inputs.helm-chart-tag }}
43- mv pallet-defect-detection-reference-implementation-${{ inputs.helm-chart-tag }}.tgz manufacturing-ai-suite-vision-helm-chart-${{ inputs.helm-chart-tag }}.tgz
40+ cd edge-ai-suites-repo/manufacturing-ai-suite/industrial-edge-insights-vision
41+ # Packaging PCB
42+ mv helm/Chart-pcb-anomaly-detection.yaml helm/Chart.yaml
43+ mv helm/values_pcb_anomaly_detection.yaml helm/values.yaml
44+ helm package helm --version ${{ inputs.helm-chart-tag }} --app-version ${{ inputs.helm-chart-tag }}
45+
46+ # Packaging Weld Porosity
47+ mv helm/Chart-weld-porosity.yaml helm/Chart.yaml
48+ mv helm/values_weld_porosity_classification.yaml helm/values.yaml
49+ helm package helm --version ${{ inputs.helm-chart-tag }} --app-version ${{ inputs.helm-chart-tag }}
50+
51+ # Packaging PDD
52+ mv helm/Chart-pallet-defect-detection.yaml helm/Chart.yaml
53+ mv helm/values_pallet_defect_detection.yaml helm/values.yaml
54+ helm package helm --version ${{ inputs.helm-chart-tag }} --app-version ${{ inputs.helm-chart-tag }}
55+
56+ # Packaging Worker Safty
57+ mv helm/Chart-worker-safety-gear-detection.yaml helm/Chart.yaml
58+ mv helm/values_worker_safety_gear_detection.yaml helm/values.yaml
59+ helm package helm --version ${{ inputs.helm-chart-tag }} --app-version ${{ inputs.helm-chart-tag }}
4460 - name : Push to GHCR
4561 run : |
46- CHART_PACKAGE=$(ls edge-ai-suites-repo/manufacturing-ai-suite/industrial-edge-insights-vision/helm/manufacturing-ai-suite-vision-helm-chart-${{ inputs.helm-chart-tag }}.tgz)
47- helm push $CHART_PACKAGE oci://ghcr.io/${{ github.repository }}/
62+
63+ for CHART_PACKAGE in edge-ai-suites-repo/manufacturing-ai-suite/industrial-edge-insights-vision/*-${{ inputs.helm-chart-tag }}.tgz; do
64+ helm push "$CHART_PACKAGE" oci://ghcr.io/${{ github.repository }}/manufacturing-ai-suite-vision-helm-chart
65+
66+ done
4867
4968 - name : Update Github Summary
5069 run : |
5170 echo "### ✅ manufacturing-ai-suite-vision-helm-chart published to github container registry" >> $GITHUB_STEP_SUMMARY
52- echo "- Registry: \`oci://ghcr.io/${{ github.repository }}\`" >> $GITHUB_STEP_SUMMARY
53- echo "- Version: \`${{ inputs.helm-chart-tag }}\`" >> $GITHUB_STEP_SUMMARY
54- echo "- Pull command: \`helm pull oci://ghcr.io/${{ github.repository }}/manufacturing-ai-suite-vision-helm-chart --version ${{ inputs.helm-chart-tag }}\`" >> $GITHUB_STEP_SUMMARY
71+ echo "- Registry: \`oci://ghcr.io/${{ github.repository }}\`" >> $GITHUB_STEP_SUMMARY
72+ echo "- Version: \`${{ inputs.helm-chart-tag }}\`" >> $GITHUB_STEP_SUMMARY
73+ echo "### Helm Pull Commands" >> $GITHUB_STEP_SUMMARY
74+ for CHART_PACKAGE in edge-ai-suites-repo/manufacturing-ai-suite/industrial-edge-insights-vision/*-${{ inputs.helm-chart-tag }}.tgz; do
75+ # Extract the chart name from the .tgz file
76+ CHART_NAME=$(basename "$CHART_PACKAGE" -${{ inputs.helm-chart-tag }}.tgz)
77+ # Append the pull command to GitHub summary
78+ echo " \`helm pull oci://ghcr.io/${{ github.repository }}/manufacturing-ai-suite-vision-helm-chart/$CHART_NAME --version ${{ inputs.helm-chart-tag }}\`" >> $GITHUB_STEP_SUMMARY
79+ done
80+
5581 - name : Clean up
5682 if : always()
5783 run : |
58- rm -rf edge-ai-suites-repo
84+ rm -rf edge-ai-suites-repo
0 commit comments