diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..ddcd37b --- /dev/null +++ b/Jenkinsfile @@ -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/ + """ + } + } +} diff --git a/README.md b/README.md new file mode 100644 index 0000000..7bf3268 --- /dev/null +++ b/README.md @@ -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/