forked from glenux/mfm
ci: add support for docker in jenkins
This commit is contained in:
parent
e6bb63c807
commit
7fe89dd051
1 changed files with 8 additions and 1 deletions
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
|
@ -4,8 +4,15 @@ pipeline {
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
|
agent {
|
||||||
|
docker {
|
||||||
|
image 'crystallang/crystal:1.11.0-alpine'
|
||||||
|
reuseNode true
|
||||||
|
}
|
||||||
|
}
|
||||||
steps {
|
steps {
|
||||||
echo 'Building..'
|
sh 'shards install'
|
||||||
|
sh 'shards build --production --static'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Test') {
|
stage('Test') {
|
||||||
|
|
Loading…
Reference in a new issue