build: 前端应用部署。

This commit is contained in:
jiangdingxuan
2025-08-21 10:12:47 +08:00
parent c447145d62
commit ae70d34cd0
6 changed files with 69 additions and 8 deletions

39
apps/web-antd/Jenkinsfile vendored Normal file
View File

@@ -0,0 +1,39 @@
#!/usr/bin/env groovy
pipeline {
agent any
stages {
stage('build') {
steps {
script {
file_contents = '''
VITE_GLOB_API_URL=/ruoyi-vue-pro
'''
write_file_path = "apps/web-antd/.env.production.local"
writeFile file: write_file_path, text: file_contents, encoding: 'UTF-8'
}
script{
sh "docker build -f apps/web-antd/Dockerfile --build-arg BASE_URI=yudao-ui-admin/ -t $IMAGE_PATH ."
}
}
}
stage('deploy') {
steps {
script{
sh 'docker push $IMAGE_PATH'
}
}
}
}
post {
success {
sh """
curl -X POST "${params.API_URL}/success"
"""
}
failure {
sh """
curl -X POST "${params.API_URL}/failure"
"""
}
}
}