From 84725806f5c07d1ee93ecafe0d14f2ffe40b7236 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Fri, 9 Oct 2020 22:15:24 -0700 Subject: [PATCH] Try running with Dockerfile --- Dockerfile | 5 +++++ Jenkinsfile | 14 +++++--------- 2 files changed, 10 insertions(+), 9 deletions(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0b18c08 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM silex/emacs:27.1-alpine-dev + +RUN git clone https://github.com/cask/cask.git /usr/local/cask +ENV PATH="/usr/local/cask/bin:$PATH" +RUN cask upgrade-cask diff --git a/Jenkinsfile b/Jenkinsfile index fbcf199..6543c4f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,17 +1,13 @@ -def dockerImage = 'silex/emacs:27.1-alpine-dev' +pipeline { + agent { dockerfile true } -node('docker') { - checkout scm - - stage('Build') { - docker.image(dockerImage).inside { + stages { + stage('Build') { sh 'make' stash includes: 'public/*', name: 'public_html' } - } - stage('Deploy') { - docker.image('instrumentisto/rsync-ssh').inside { + stage('Deploy') { unstash 'public_html' withCredentials([file(credentialsId: 'ryuslash.org-deploy-key', variable: 'KEY_FILE')]) {