Add tiles & deployment steps for them
This commit is contained in:
parent
1672d4de94
commit
fad39aa95a
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
@ -16,6 +16,16 @@ pipeline {
|
|||||||
}
|
}
|
||||||
stage('Deploy') {
|
stage('Deploy') {
|
||||||
steps {
|
steps {
|
||||||
|
// Clean previous deploy
|
||||||
|
sh 'rm -rf /var/www/combi/assets /var/www/combi/data /var/www/combi/n'
|
||||||
|
// Check if the tiles folder exists. If it does not,
|
||||||
|
// extract the tiles
|
||||||
|
res = sh(script: "test -d /var/www/combi/tiles && echo '1' || echo '0' ", returnStdout: true).trim()
|
||||||
|
if (res == '0') {
|
||||||
|
sh 'cp tiles.tar.gz /var/www/combi/'
|
||||||
|
sh 'tar -xf /var/www/combi/tiles.tar.gz -C /var/www/combi'
|
||||||
|
sh 'rm /var/www/combi/tiles.tar.gz'
|
||||||
|
}
|
||||||
sh 'cp -r ./dist/* /var/www/combi/'
|
sh 'cp -r ./dist/* /var/www/combi/'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
BIN
tiles.tar.gz
Normal file
BIN
tiles.tar.gz
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user