forked from otymko/OneScript.WebSite
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathJenkinsfile
More file actions
35 lines (31 loc) · 763 Bytes
/
Jenkinsfile
File metadata and controls
35 lines (31 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
pipeline {
agent none
stages {
stage('Build content') {
agent {
docker {
image 'node:lts-alpine3.20'
label 'linux'
}
}
environment {
VITEPRESS_FILES_DIR='/var/www/oscript.io'
}
steps {
dir('frontend') {
sh 'npm install && npm run docs:build'
}
}
}
stage('Create container') {
agent {
label 'linux'
}
steps {
dir('backend') {
sh 'docker buildx build --load -t oscript/backend .'
}
}
}
}
}