aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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'
+ }
+ }
+
+ }
+ }
+ }
+}