generated from Templates/Utility-Image-Builder
Initial commit
This commit is contained in:
27
template/setup.sh
Executable file
27
template/setup.sh
Executable file
@@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "Hello, lets get your project set up. Please follow the prompts attentively."
|
||||
|
||||
echo ""
|
||||
read -p " K3S Build Pod Name: " k3sApp
|
||||
read -p " Build Architecture: [amd64 | arm64] " k3sArch
|
||||
|
||||
echo ""
|
||||
echo "Creating Folders"
|
||||
echo " Creating cicd/"
|
||||
mkdir cicd
|
||||
|
||||
echo ""
|
||||
echo "Loading files"
|
||||
echo " Loading cicd/Jenkinsfile"
|
||||
cp template/Jenkinsfile cicd/Jenkinsfile
|
||||
sed -ie "s|{{k3sApp}}|$k3sApp|g" cicd/Jenkinsfile
|
||||
sed -ie "s|{{k3sArch}}|$k3sArch|g" cicd/Jenkinsfile
|
||||
rm cicd/Jenkinsfilee
|
||||
|
||||
echo ""
|
||||
echo "Removing template folder"
|
||||
rm -rf template
|
||||
|
||||
echo ""
|
||||
echo "Thank you! Happy building..."
|
||||
Reference in New Issue
Block a user