Try running with Dockerfile
This commit is contained in:
parent
a6d666a7e9
commit
84725806f5
2 changed files with 10 additions and 9 deletions
5
Dockerfile
Normal file
5
Dockerfile
Normal 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
10
Jenkinsfile
vendored
|
@ -1,17 +1,13 @@
|
||||||
def dockerImage = 'silex/emacs:27.1-alpine-dev'
|
pipeline {
|
||||||
|
agent { dockerfile true }
|
||||||
node('docker') {
|
|
||||||
checkout scm
|
|
||||||
|
|
||||||
|
stages {
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
docker.image(dockerImage).inside {
|
|
||||||
sh 'make'
|
sh 'make'
|
||||||
stash includes: 'public/*', name: 'public_html'
|
stash includes: 'public/*', name: 'public_html'
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
stage('Deploy') {
|
stage('Deploy') {
|
||||||
docker.image('instrumentisto/rsync-ssh').inside {
|
|
||||||
unstash 'public_html'
|
unstash 'public_html'
|
||||||
|
|
||||||
withCredentials([file(credentialsId: 'ryuslash.org-deploy-key', variable: 'KEY_FILE')]) {
|
withCredentials([file(credentialsId: 'ryuslash.org-deploy-key', variable: 'KEY_FILE')]) {
|
||||||
|
|
Loading…
Reference in a new issue