mirror of
https://github.com/status-im/cn.status.im.git
synced 2025-02-27 07:20:33 +00:00
add a basic jenkinsfile
This commit is contained in:
parent
1b56a09178
commit
729b383e85
28
Jenkinsfile
vendored
Normal file
28
Jenkinsfile
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
def website_host = 'node-01.ac-cn-hongkong-c.web.misc.statusim.net'
|
||||
|
||||
node('linux') {
|
||||
environment {
|
||||
GH_USER = gh_user
|
||||
}
|
||||
|
||||
stage('Git Prep') {
|
||||
checkout scm
|
||||
}
|
||||
|
||||
stage('Install Deps') {
|
||||
sh 'npm install'
|
||||
}
|
||||
|
||||
stage('Build') {
|
||||
sh 'npm run build'
|
||||
}
|
||||
|
||||
stage('Publish') {
|
||||
sshagent(['jenkins-ssh']) {
|
||||
sh """
|
||||
scp -o StrictHostKeyChecking=no -r dist/. \\
|
||||
${website_host}:/var/www/cn.status.im/
|
||||
"""
|
||||
}
|
||||
}
|
||||
}
|
21
README.md
Normal file
21
README.md
Normal file
@ -0,0 +1,21 @@
|
||||
# Description
|
||||
|
||||
This repo creates the Status main Chinese page for https://cn.status.im.
|
||||
|
||||
# Usage
|
||||
|
||||
To develop the site use:
|
||||
```
|
||||
npm run develop
|
||||
```
|
||||
|
||||
To build the site use:
|
||||
```
|
||||
npm run build
|
||||
```
|
||||
The build artifacts end up in `dist` folder.
|
||||
|
||||
# Continuous Integration
|
||||
|
||||
The deployment is handled by Jenkins(https://ci.status.im/) and configured via the [`Jenkinsfile`](./Jenkinsfile) and deployed via this job:
|
||||
https://ci.status.im/job/misc/job/cn.status.im/
|
Loading…
x
Reference in New Issue
Block a user