aboutsummaryrefslogtreecommitdiff
path: root/sample_pipeline
diff options
context:
space:
mode:
Diffstat (limited to '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'
+ }
+ }
+
+ }
+ }
+ }
+}