generated from Templates/Utility-Image-Builder
Initial Commit.
Some checks failed
Home Cluster Builds/Image-Deploy-Arm64/pipeline/head There was a failure building this commit
Some checks failed
Home Cluster Builds/Image-Deploy-Arm64/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -1 +1,5 @@
|
|||||||
FROM nginx:latest
|
FROM nginx:latest
|
||||||
|
|
||||||
|
WORKDIR /utils
|
||||||
|
RUN curl -LO "https://storage.googleapis.com/kubernetes-release/release/v1.24.3/bin/linux/arm64/kubectl"
|
||||||
|
RUN chmod u+x ./kubectl
|
||||||
|
|||||||
4
template/Jenkinsfile → cicd/Jenkinsfile
vendored
4
template/Jenkinsfile → cicd/Jenkinsfile
vendored
@@ -8,11 +8,11 @@ pipeline {
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Pod
|
kind: Pod
|
||||||
metadata:
|
metadata:
|
||||||
name: {{k3sApp}}-image-build
|
name: deploy-arm64-image-build
|
||||||
spec:
|
spec:
|
||||||
serviceAccountName: jenkins-admin
|
serviceAccountName: jenkins-admin
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
kubernetes.io/arch: {{k3sArch}}
|
kubernetes.io/arch: arm64
|
||||||
containers:
|
containers:
|
||||||
- name: kaniko
|
- name: kaniko
|
||||||
image: gcr.io/kaniko-project/executor:debug
|
image: gcr.io/kaniko-project/executor:debug
|
||||||
@@ -1,3 +1,3 @@
|
|||||||
destinationRegistry=192.168.195.195:30000
|
destinationRegistry=192.168.195.195:30000
|
||||||
imageName=nginx
|
imageName=deploy-arm64
|
||||||
imageTag=latest
|
imageTag=latest
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
#!/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