aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2020-10-09 22:15:24 -0700
committerGravatar Tom Willemse2020-10-09 22:15:24 -0700
commit84725806f5c07d1ee93ecafe0d14f2ffe40b7236 (patch)
tree006149b09763c58af94cf4ddb582cd37370e6ad2
parenta6d666a7e98029c380154f5527aff81b1ba934c5 (diff)
downloadnew-ryuslash.org-84725806f5c07d1ee93ecafe0d14f2ffe40b7236.tar.gz
new-ryuslash.org-84725806f5c07d1ee93ecafe0d14f2ffe40b7236.zip
Try running with Dockerfile
-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')]) {