update Jenkinsfile

This commit is contained in:
2026-02-18 11:37:31 +03:00
parent 4e2c6dff58
commit 4dbb48cb00

36
Jenkinsfile vendored
View File

@@ -5,31 +5,31 @@ pipeline {
} }
stages { stages {
stage('Install Dependencies') { stage('Install Dependencies') {
steps { steps {
sh ''' sh '''
# Install Hugo # Install Hugo
curl -sL https://github.com/gohugoio/hugo/releases/download/v0.146.0/hugo_extended_0.146.0_linux-amd64.tar.gz \ curl -sL https://github.com/gohugoio/hugo/releases/download/v0.146.0/hugo_extended_0.146.0_linux-amd64.tar.gz \
-o hugo.tar.gz -o hugo.tar.gz
tar -xzf hugo.tar.gz hugo tar -xzf hugo.tar.gz hugo
# Install Go # Install Go
curl -sL https://go.dev/dl/go1.24.1.linux-amd64.tar.gz -o go.tar.gz curl -sL https://go.dev/dl/go1.24.1.linux-amd64.tar.gz -o go.tar.gz
tar -xzf go.tar.gz tar -xzf go.tar.gz
''' '''
} }
} }
stage('Build') { stage('Build') {
steps { steps {
sh 'PATH=$PATH:$WORKSPACE/go/bin ./hugo --minify' sh 'PATH=$PATH:$WORKSPACE/go/bin ./hugo --minify'
} }
} }
stage('Deploy') { stage('Deploy') {
steps: steps:
sh ''' sh '''
scp -o StrictHostKeyChecking=no -r public/* root@172.17.0.1:${DEPLOY_PATH}/ scp -o StrictHostKeyChecking=no -r public/* root@172.17.0.1:${DEPLOY_PATH}/
''' '''
} }
} }
} }
post { post {
success { success {