TrueChartsClone/.github/scripts/install_dependencies.sh

63 lines
2.0 KiB
Bash
Raw Normal View History

chore(images): fix some refs (#16749) **Description** <!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. --> ⚒️ Fixes # <!--(issue)--> **⚙️ Type of change** - [ ] ⚙️ Feature/App addition - [ ] 🪛 Bugfix - [ ] ⚠️ Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] 🔃 Refactor of current code **🧪 How Has This Been Tested?** <!-- Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration --> **📃 Notes:** <!-- Please enter any other relevant information here --> **✔️ Checklist:** - [ ] ⚖️ My code follows the style guidelines of this project - [ ] 👀 I have performed a self-review of my own code - [ ] #️⃣ I have commented my code, particularly in hard-to-understand areas - [ ] 📄 I have made corresponding changes to the documentation - [ ] ⚠️ My changes generate no new warnings - [ ] 🧪 I have added tests to this description that prove my fix is effective or that my feature works - [ ] ⬆️ I increased versions for any altered app according to semantic versioning **➕ App addition** If this PR is an app addition please make sure you have done the following. - [ ] 🪞 I have opened a PR on [truecharts/containers](https://github.com/truecharts/containers) adding the container to TrueCharts mirror repo. - [ ] 🖼️ I have added an icon in the Chart's root directory called `icon.png` --- _Please don't blindly check all the boxes. Read them and only check those that apply. Those checkboxes are there for the reviewer to see what is this all about and the status of this PR with a quick glance._
2024-01-02 11:15:02 +00:00
#!/bin/bash
curr_chart=$1
if [ -z "$curr_chart" ]
then
echo "No chart name provided"
exit 1
fi
echo "Chart name: $curr_chart"
if [[ "$curr_chart" == "charts/operators/metallb-config" ]]; then
echo "Installing metallb chart"
helm install metallb oci://tccr.io/truecharts/metallb --namespace metallb --create-namespace --wait
if [[ "$?" != "0" ]]; then
echo "Failed to install metallb chart"
exit 1
fi
echo "Done installing metallb chart"
fi
if [[ "$curr_chart" == "charts/enterprise/clusterissuer" ]]; then
echo "Installing cert-manager chart"
helm install cert-manager oci://tccr.io/truecharts/cert-manager --namespace cert-manager --create-namespace --wait
if [[ "$?" != "0" ]]; then
echo "Failed to install cert-manager chart"
exit 1
fi
echo "Done installing cert-manager chart"
fi
if [[ "$curr_chart" != "charts/operators/cloudnative-pg" ]]; then
echo "Installing cloudnative-pg chart"
helm install cloudnative-pg oci://tccr.io/truecharts/cloudnative-pg --namespace cloudnative-pg --create-namespace --wait
if [[ "$?" != "0" ]]; then
echo "Failed to install cloudnative-pg chart"
exit 1
fi
echo "Done installing cloudnative-pg chart"
fi
if [[ "$curr_chart" != "charts/operators/prometheus-operator" ]]; then
echo "Installing prometheus-operator chart"
helm install prometheus-operator oci://tccr.io/truecharts/prometheus-operator --namespace prometheus-operator --create-namespace --wait
if [[ "$?" != "0" ]]; then
echo "Failed to install prometheus-operator chart"
exit 1
fi
echo "Done installing prometheus-operator chart"
fi
# if [[ "$curr_chart" != "charts/enterprise/traefik" ]]; then
# echo "Installing traefik chart"
# helm install traefik oci://tccr.io/truecharts/traefik --namespace traefik --create-namespace --wait
# if [[ "$?" != "0" ]]; then
# echo "Failed to install traefik chart"
# exit 1
# fi
# echo "Done installing traefik chart"
# fi