diff options
author | 2020-10-09 22:15:24 -0700 | |
---|---|---|
committer | 2020-10-09 22:15:24 -0700 | |
commit | 84725806f5c07d1ee93ecafe0d14f2ffe40b7236 (patch) | |
tree | 006149b09763c58af94cf4ddb582cd37370e6ad2 | |
parent | a6d666a7e98029c380154f5527aff81b1ba934c5 (diff) | |
download | new-ryuslash.org-84725806f5c07d1ee93ecafe0d14f2ffe40b7236.tar.gz new-ryuslash.org-84725806f5c07d1ee93ecafe0d14f2ffe40b7236.zip |
Try running with Dockerfile
-rw-r--r-- | Dockerfile | 5 | ||||
-rw-r--r-- | Jenkinsfile | 14 |
2 files changed, 10 insertions, 9 deletions
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')]) { |