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 {
|
||||
stage('Build') {
|
||||
agent {
|
||||
docker {
|
||||
image 'crystallang/crystal:1.11.0-alpine'
|
||||
reuseNode true
|
||||
}
|
||||
}
|
||||
steps {
|
||||
echo 'Building..'
|
||||
sh 'shards install'
|
||||
sh 'shards build --production --static'
|
||||
}
|
||||
}
|
||||
stage('Test') {
|
||||
|
|
Loading…
Reference in a new issue