generated from Templates/Utility-Image-Builder
Bootstrap Commit.
All checks were successful
Home Cluster Builds/Image-Deploy-Amd64/pipeline/head This commit looks good
All checks were successful
Home Cluster Builds/Image-Deploy-Amd64/pipeline/head This commit looks good
This commit is contained in:
@@ -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
|
||||
4
template/Jenkinsfile → cicd/Jenkinsfile
vendored
4
template/Jenkinsfile → cicd/Jenkinsfile
vendored
@@ -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
|
||||
@@ -1,3 +1,3 @@
|
||||
destinationRegistry=192.168.195.195:30000
|
||||
imageName=nginx
|
||||
imageName=deploy-amd64
|
||||
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