Cleanup
This commit is contained in:
parent
f7cadffd91
commit
d51e088dfb
2
Makefile
2
Makefile
|
@ -15,4 +15,4 @@ deploy-website: install compile
|
||||||
./node_modules/gh-pages/bin/gh-pages.js --dotfiles --message ${MESSAGE} --dist resources/public
|
./node_modules/gh-pages/bin/gh-pages.js --dotfiles --message ${MESSAGE} --dist resources/public
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf target node_modules/ .cpcache/
|
rm -rf target/ node_modules/ .cpcache/ resources/public/js/compiled/
|
||||||
|
|
|
@ -1,29 +0,0 @@
|
||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
var ghpages = require('gh-pages')
|
|
||||||
|
|
||||||
if (!process.env.GH_REPO) { throw "Env variable GH_REPO needs to be set!" }
|
|
||||||
if (!process.env.GH_USER) { throw "Env variable GH_USER needs to be set!" }
|
|
||||||
if (!process.env.GH_PASS) { throw "Env variable GH_PASS needs to be set!" }
|
|
||||||
|
|
||||||
console.log('Deploying...')
|
|
||||||
|
|
||||||
ghpages.publish('resources/public', {
|
|
||||||
repo: (
|
|
||||||
'https://'
|
|
||||||
+ process.env.GH_USER + ':'
|
|
||||||
+ process.env.GH_PASS
|
|
||||||
+ `@github.com/${process.env.GH_REPO}.git`
|
|
||||||
),
|
|
||||||
message: 'Deploying latest version',
|
|
||||||
branch: 'gh-pages',
|
|
||||||
dotfiles: true,
|
|
||||||
silent: false,
|
|
||||||
}, function(err) {
|
|
||||||
if (err !== undefined) {
|
|
||||||
console.error(err)
|
|
||||||
process.exit(1)
|
|
||||||
} else {
|
|
||||||
console.log(`Successfully deployed to ${process.env.GH_REPO}!`)
|
|
||||||
}
|
|
||||||
})
|
|
|
@ -1,56 +0,0 @@
|
||||||
pipeline {
|
|
||||||
|
|
||||||
/* This image comes from _assets/docker */
|
|
||||||
agent {
|
|
||||||
docker {
|
|
||||||
label 'linux'
|
|
||||||
image 'statusteam/clojure:latest'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
options {
|
|
||||||
timestamps()
|
|
||||||
/* avoid race conditions on deploy */
|
|
||||||
disableConcurrentBuilds()
|
|
||||||
/* manage how many builds we keep */
|
|
||||||
buildDiscarder(logRotator(numToKeepStr: '60'))
|
|
||||||
}
|
|
||||||
|
|
||||||
environment {
|
|
||||||
GH_REPO = 'status-im/extensions-fiddle'
|
|
||||||
GH_USER = 'status-im-auto'
|
|
||||||
GH_MAIL = 'auto@status.im'
|
|
||||||
HOME = '/tmp'
|
|
||||||
}
|
|
||||||
|
|
||||||
stages {
|
|
||||||
stage('Prep') {
|
|
||||||
steps {
|
|
||||||
sh "git config user.name ${GH_USER}"
|
|
||||||
sh "git config user.email ${GH_MAIL}"
|
|
||||||
sh 'yarn install'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
stage('Build') {
|
|
||||||
steps {
|
|
||||||
sh 'make compile'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
stage('Publish') {
|
|
||||||
steps { script {
|
|
||||||
withCredentials([usernamePassword(
|
|
||||||
credentialsId: 'status-im-auto',
|
|
||||||
usernameVariable: 'GH_USER',
|
|
||||||
passwordVariable: 'GH_PASS'
|
|
||||||
)]) {
|
|
||||||
sh 'make deploy-website'
|
|
||||||
}
|
|
||||||
} }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
post {
|
|
||||||
always { sh 'make clean' }
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,8 +0,0 @@
|
||||||
FROM clojure:openjdk-8-tools-deps-1.10.0.414-alpine
|
|
||||||
|
|
||||||
RUN apk --no-cache add git make nodejs yarn
|
|
||||||
|
|
||||||
MAINTAINER Jakub Sokolowski "jakub@status.im"
|
|
||||||
LABEL description="Basic image with Clojure for building in CI."
|
|
||||||
|
|
||||||
ENTRYPOINT []
|
|
|
@ -1,8 +0,0 @@
|
||||||
IMAGE_TAG = latest
|
|
||||||
IMAGE_NAME = statusteam/clojure:$(IMAGE_TAG)
|
|
||||||
|
|
||||||
build:
|
|
||||||
docker build -t $(IMAGE_NAME) .
|
|
||||||
|
|
||||||
push: build
|
|
||||||
docker push $(IMAGE_NAME)
|
|
2
deps.edn
2
deps.edn
|
@ -2,7 +2,7 @@
|
||||||
status-im/pluto {:mvn/version "iteration-4-10-SNAPSHOT"}
|
status-im/pluto {:mvn/version "iteration-4-10-SNAPSHOT"}
|
||||||
reagent {:mvn/version "0.8.1"}
|
reagent {:mvn/version "0.8.1"}
|
||||||
re-frame {:mvn/version "0.10.6"}
|
re-frame {:mvn/version "0.10.6"}
|
||||||
fipp {:mvn/version "0.6.17"}
|
fipp {:mvn/version "0.6.13"} ;; Use an older version to prevent a compilation warning
|
||||||
cljsjs/codemirror {:mvn/version "5.40.2-1"}
|
cljsjs/codemirror {:mvn/version "5.40.2-1"}
|
||||||
cljsjs/parinfer {:mvn/version "3.11.0-0"}
|
cljsjs/parinfer {:mvn/version "3.11.0-0"}
|
||||||
cljsjs/parinfer-codemirror {:mvn/version "1.4.1-2"}
|
cljsjs/parinfer-codemirror {:mvn/version "1.4.1-2"}
|
||||||
|
|
Loading…
Reference in New Issue