draft: ci: add ui build step
Some checks reported errors
dustin/hudctrl/pipeline/head Something is wrong with the build of this commit
Some checks reported errors
dustin/hudctrl/pipeline/head Something is wrong with the build of this commit
This commit is contained in:
25
ci/Jenkinsfile
vendored
25
ci/Jenkinsfile
vendored
@@ -9,15 +9,28 @@ pipeline {
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Build Backend') {
|
||||
steps {
|
||||
container('python') {
|
||||
dir('svc') {
|
||||
sh '. ../ci/build-svc.sh'
|
||||
stage('Build') {
|
||||
parallel {
|
||||
stage('Build Backend') {
|
||||
steps {
|
||||
container('python') {
|
||||
dir('svc') {
|
||||
sh '. ../ci/build-svc.sh'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('Build Frontent') {
|
||||
steps {
|
||||
container('node') {
|
||||
dir('ui') {
|
||||
sh '. ../ci/build-ui.sh'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
4
ci/build-ui.sh
Normal file
4
ci/build-ui.sh
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh -ex
|
||||
|
||||
npm install
|
||||
npm run build
|
||||
@@ -5,3 +5,8 @@ spec:
|
||||
command:
|
||||
- sleep
|
||||
- infinity
|
||||
- name: node
|
||||
image: docker.io/node:16-bullseye-slim
|
||||
command:
|
||||
- sleep
|
||||
- infinity
|
||||
|
||||
Reference in New Issue
Block a user