aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody Hiar <codyfh@gmail.com>2019-01-03 09:19:52 -0700
committerCody Hiar <codyfh@gmail.com>2019-01-03 09:19:52 -0700
commitb6e3dbce6563c48d5aee8f5890db26160f19a3c1 (patch)
tree174a02563e8221699ad3d33ffb9f957755ec575b
parentd3f27ddadd70c0c37b80c22ca4e808495e129d90 (diff)
Adding sample pipeline
-rw-r--r--sample_pipeline30
1 files changed, 30 insertions, 0 deletions
diff --git a/sample_pipeline b/sample_pipeline
new file mode 100644
index 0000000..8fadd26
--- /dev/null
+++ b/sample_pipeline
@@ -0,0 +1,30 @@
+pipeline {
+ 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'
+ }
+ }
+
+ }
+ }
+ }
+}