Loaded full build file.
Some checks failed
Home Cluster Builds/Image-ElixirPhoenix-1.11.3/pipeline/head There was a failure building this commit
Some checks failed
Home Cluster Builds/Image-ElixirPhoenix-1.11.3/pipeline/head There was a failure building this commit
This commit is contained in:
14
cicd/Jenkinsfile
vendored
14
cicd/Jenkinsfile
vendored
@@ -35,7 +35,19 @@ spec:
|
|||||||
stages {
|
stages {
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
steps {
|
steps {
|
||||||
sh 'No build steps configured.'
|
sh 'echo "No build steps configured."'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Test') {
|
||||||
|
steps {
|
||||||
|
sh 'echo "No test steps configured."'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Docker Build and Push') {
|
||||||
|
steps {
|
||||||
|
container("kaniko") {
|
||||||
|
sh '/kaniko/executor --dockerfile `pwd`/cicd/'+env.BRANCH_NAME+'/Dockerfile --context `pwd` --destination 192.168.195.195:30000/elixir-phoenix:1.11.3-amd64'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,54 +0,0 @@
|
|||||||
#!groovy
|
|
||||||
|
|
||||||
pipeline {
|
|
||||||
agent {
|
|
||||||
kubernetes {
|
|
||||||
defaultContainer 'jnlp'
|
|
||||||
yaml """
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Pod
|
|
||||||
metadata:
|
|
||||||
name: elixir-test-"""+env.BRANCH_NAME+"""-build
|
|
||||||
spec:
|
|
||||||
serviceAccountName: jenkins-admin
|
|
||||||
nodeSelector:
|
|
||||||
kubernetes.io/arch: amd64
|
|
||||||
containers:
|
|
||||||
- name: kaniko
|
|
||||||
image: gcr.io/kaniko-project/executor:debug
|
|
||||||
command: ["tail"]
|
|
||||||
args: ["-f", "/dev/null"]
|
|
||||||
volumeMounts:
|
|
||||||
- name: kaniko-secret
|
|
||||||
mountPath: /kaniko/.docker
|
|
||||||
restartPolicy: Never
|
|
||||||
volumes:
|
|
||||||
- name: kaniko-secret
|
|
||||||
secret:
|
|
||||||
secretName: dockercred
|
|
||||||
items:
|
|
||||||
- key: .dockerconfigjson
|
|
||||||
path: config.json
|
|
||||||
"""
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stages {
|
|
||||||
stage('Build') {
|
|
||||||
steps {
|
|
||||||
sh 'No build steps configured.'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Test') {
|
|
||||||
steps {
|
|
||||||
sh 'echo "No test steps configured."'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Docker Build and Push') {
|
|
||||||
steps {
|
|
||||||
container("kaniko") {
|
|
||||||
sh '/kaniko/executor --dockerfile `pwd`/cicd/'+env.BRANCH_NAME+'/Dockerfile --context `pwd` --destination 192.168.195.195:30000/elixir-phoenix:1.11.3'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user