update PaperMod submodule
This commit is contained in:
24
Jenkinsfile
vendored
24
Jenkinsfile
vendored
@@ -4,7 +4,7 @@ pipeline {
|
|||||||
DEPLOY_HOST = 'web@23.26.156.61'
|
DEPLOY_HOST = 'web@23.26.156.61'
|
||||||
DEPLOY_PATH = '/srv/www/masha-site'
|
DEPLOY_PATH = '/srv/www/masha-site'
|
||||||
SSH_CRED_ID = 'web-ssh'
|
SSH_CRED_ID = 'web-ssh'
|
||||||
HUGO_VERSION = '0.128.1'
|
HUGO_VERSION = '0.149.0'
|
||||||
}
|
}
|
||||||
triggers {
|
triggers {
|
||||||
githubPush()
|
githubPush()
|
||||||
@@ -17,16 +17,17 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Setup Hugo') {
|
stage('Setup Hugo') {
|
||||||
steps {
|
steps {
|
||||||
sh '''
|
sh '''
|
||||||
mkdir -p tools
|
mkdir -p tools
|
||||||
cd tools
|
cd tools
|
||||||
curl -L -o hugo.tar.gz https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz
|
curl -L -o hugo.tar.gz https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz
|
||||||
tar -xzf hugo.tar.gz
|
tar -xzf hugo.tar.gz
|
||||||
chmod +x hugo
|
chmod +x hugo
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Build site') {
|
stage('Build site') {
|
||||||
steps {
|
steps {
|
||||||
sh './tools/hugo --minify'
|
sh './tools/hugo --minify'
|
||||||
@@ -45,4 +46,3 @@ pipeline {
|
|||||||
failure { echo 'Failed' }
|
failure { echo 'Failed' }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user