aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody Hiar <codyfh@gmail.com>2019-01-08 04:00:23 +0000
committerCody Hiar <codyfh@gmail.com>2019-01-08 04:00:23 +0000
commitbeb17794a1f9cbc37b198c4f84e4552b92011626 (patch)
tree5b6f15af85fedb793c55c40652faf354ff27198a
parente8427102cd09d48ada32f3c54e6de5f7fce3e5d0 (diff)
Adding Jenkinsfile
-rw-r--r--Jenkinsfile33
1 files changed, 33 insertions, 0 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
new file mode 100644
index 0000000..8c400ce
--- /dev/null
+++ b/Jenkinsfile
@@ -0,0 +1,33 @@
+pipeline {
+ triggers {
+ pollSCM('H/15 * * * *')
+ }
+ environment {
+ registry = "thornycrackers/neovim"
+ registryCredential = 'dockerhub'
+ }
+ agent any
+ stages {
+ stage('Cloning Git') {
+ steps {
+ git 'https://github.com/thornycrackers/docker-neovim'
+ }
+ }
+ stage('Build') {
+ steps {
+ sh 'make setup'
+ sh 'make build'
+ }
+ }
+ stage('Push Image'){
+ steps {
+ script {
+ docker.withRegistry( '', registryCredential ) {
+ sh 'make push'
+ }
+ }
+
+ }
+ }
+ }
+}