Compare commits

2 Commits

Author SHA1 Message Date
304a06c75f Merge branch 'feature/change-base-image' into stage
Some checks failed
Home Cluster Builds/wedding-page/pipeline/head There was a failure building this commit
2023-01-12 00:21:21 +02:00
499f492efe Updated deploy image to custom utils image 2023-01-12 00:21:05 +02:00

6
cicd/Jenkinsfile vendored
View File

@@ -22,7 +22,7 @@ spec:
- name: kaniko-secret
mountPath: /kaniko/.docker
- name: deploy
image: 192.168.195.195:30000/nginx:latest
image: 192.168.195.195:30000/deploy-arm64:latest
command: ["tail"]
args: ["-f", "/dev/null"]
restartPolicy: Never
@@ -57,10 +57,8 @@ spec:
stage('Kubernetes Deploy') {
steps {
container("deploy") {
sh 'curl -LO "https://storage.googleapis.com/kubernetes-release/release/v1.24.3/bin/linux/arm64/kubectl"'
sh 'chmod u+x ./kubectl'
sh 'sed -ie "s/{{replaceMe}}/`date +%s`/g" `pwd`/cicd/'+env.BRANCH_NAME+'/deployment.yaml'
sh './kubectl apply -f `pwd`/cicd/'+env.BRANCH_NAME+'/deployment.yaml'
sh './utils/kubectl apply -f `pwd`/cicd/'+env.BRANCH_NAME+'/deployment.yaml'
}
}
}