aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Dockerfile5
-rw-r--r--Jenkinsfile14
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')]) {