oneuptime/Ci/scripts/setup-machine.sh
2022-04-11 14:11:16 +01:00

19 lines
572 B
Bash

##############
# IMPORTANT:
# This script sets the CI/CD machine up to run a build job. It's usually the first script that runs
##############
# Cleanup
echo "RUNNING COMMAND: chmod +x ./ci/cleanup.sh"
chmod +x ./ci/scripts/cleanup.sh
echo "RUNNING COMMAND: ./ci/cleanup.sh"
./ci/scripts/cleanup.sh
# Setup Machine.
echo "RUNNING COMMAND: chmod +x ./HelmChart/public/install.sh"
chmod +x ./HelmChart/public/install.sh
echo "RUNNING COMMAND: ./HelmChart/public/install.sh"
./HelmChart/public/install.sh ci-install $1
# For dpkg interruption
sudo dpkg --configure -a