Bootstrap Commit.
All checks were successful
Home Cluster Builds/Image-Deploy-Amd64/pipeline/head This commit looks good

This commit is contained in:
2023-01-12 00:05:18 +02:00
parent e7f83ab039
commit 22cd7719d8
4 changed files with 8 additions and 31 deletions

View File

@@ -1 +1,5 @@
FROM nginx:latest
WORKDIR /utils
RUN curl -LO "https://storage.googleapis.com/kubernetes-release/release/v1.24.3/bin/linux/amd64/kubectl"
RUN chmod u+x ./kubectl

View File

@@ -8,11 +8,11 @@ pipeline {
apiVersion: v1
kind: Pod
metadata:
name: {{k3sApp}}-image-build
name: deploy-amd64-image-build
spec:
serviceAccountName: jenkins-admin
nodeSelector:
kubernetes.io/arch: {{k3sArch}}
kubernetes.io/arch: amd64
containers:
- name: kaniko
image: gcr.io/kaniko-project/executor:debug

View File

@@ -1,3 +1,3 @@
destinationRegistry=192.168.195.195:30000
imageName=nginx
imageName=deploy-amd64
imageTag=latest

View File

@@ -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..."