Try running with Dockerfile

This commit is contained in:
Tom Willemse 2020-10-09 22:15:24 -07:00
parent a6d666a7e9
commit 84725806f5
2 changed files with 10 additions and 9 deletions

5
Dockerfile Normal file
View file

@ -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

10
Jenkinsfile vendored
View file

@ -1,17 +1,13 @@
def dockerImage = 'silex/emacs:27.1-alpine-dev'
node('docker') {
checkout scm
pipeline {
agent { dockerfile true }
stages {
stage('Build') {
docker.image(dockerImage).inside {
sh 'make'
stash includes: 'public/*', name: 'public_html'
}
}
stage('Deploy') {
docker.image('instrumentisto/rsync-ssh').inside {
unstash 'public_html'
withCredentials([file(credentialsId: 'ryuslash.org-deploy-key', variable: 'KEY_FILE')]) {