vac.dev/Jenkinsfile

68 lines
1.5 KiB
Plaintext
Raw Normal View History

New design (#42) (#45) * Add new design * Use yarn instead of npm * Add 404 page style * Update "See VAC Openings" CTA * Change VAC to Vac * Change specs link * Keep post categories * Change code formatting * Update images * Update media links * Add media image default * Update package.json * Add twitter cards meta data * Add media section back * Remove images * Comment script for form * Change media urls to https * Import font locally * Add Anonymous font * Change inner page layout * Change pre code style * Add font preloading * Change post content styles * Add alt attribute * Change footer research links * Update gitignore * Add Fathom analytics * Update links * Change gif to video * Add work cards links back * Change footer spacing * Change logo size * Fix header * Centered section join * Make cards clickable * Align left section join * Remove graphic & video section about * Return logo size * Add post for Waku v1 vs Waku v2 bandwidth comparison (#43) * Add post for Waku v1 vs Waku v2 bandwidth comparison * Addressing PR comments * Added future work. Minor changes to intro. (cherry picked from commit 007696cfc9898178a03a34123c59176913de3463) * Add <code> styles * Add Hanno page * Add opinion piece on ethics in surveillance tech (#44) * Add opinion piece on ethics in surveillance tech * Change published date. Added preface. * wrong date - today is 3rd (cherry picked from commit c64f5a889e48525a24313b17be808411620d1622) * Add circe page Co-authored-by: Hanno Cornelius <68783915+jm-clius@users.noreply.github.com> Co-authored-by: thecirce <95408261+thecirce@users.noreply.github.com> Co-authored-by: Hanno Cornelius <68783915+jm-clius@users.noreply.github.com> Co-authored-by: thecirce <95408261+thecirce@users.noreply.github.com>
2021-12-14 05:03:25 +01:00
pipeline {
agent { label 'linux' }
options {
disableConcurrentBuilds()
/* manage how many builds we keep */
buildDiscarder(logRotator(
numToKeepStr: '20',
daysToKeepStr: '30',
))
}
environment {
GH_USER = 'status-im-auto'
GH_MAIL = 'auto@status.im'
/* Dev site deployment. */
DEV_SITE = 'dev.vac.dev'
DEV_HOST = 'jenkins@node-01.do-ams3.sites.misc.statusim.net'
SCP_OPTS = 'StrictHostKeyChecking=no'
/* Avoid need for sudo when using bundler. */
GEM_HOME = "${env.HOME}/.gem"
}
stages {
stage('Git Prep') {
steps {
sh "git config user.name ${env.GH_USER}"
sh "git config user.email ${env.GH_MAIL}"
sh 'yarn run clean'
}
}
stage('Install Deps') {
steps {
sh 'yarn install'
New design (#42) (#45) * Add new design * Use yarn instead of npm * Add 404 page style * Update "See VAC Openings" CTA * Change VAC to Vac * Change specs link * Keep post categories * Change code formatting * Update images * Update media links * Add media image default * Update package.json * Add twitter cards meta data * Add media section back * Remove images * Comment script for form * Change media urls to https * Import font locally * Add Anonymous font * Change inner page layout * Change pre code style * Add font preloading * Change post content styles * Add alt attribute * Change footer research links * Update gitignore * Add Fathom analytics * Update links * Change gif to video * Add work cards links back * Change footer spacing * Change logo size * Fix header * Centered section join * Make cards clickable * Align left section join * Remove graphic & video section about * Return logo size * Add post for Waku v1 vs Waku v2 bandwidth comparison (#43) * Add post for Waku v1 vs Waku v2 bandwidth comparison * Addressing PR comments * Added future work. Minor changes to intro. (cherry picked from commit 007696cfc9898178a03a34123c59176913de3463) * Add <code> styles * Add Hanno page * Add opinion piece on ethics in surveillance tech (#44) * Add opinion piece on ethics in surveillance tech * Change published date. Added preface. * wrong date - today is 3rd (cherry picked from commit c64f5a889e48525a24313b17be808411620d1622) * Add circe page Co-authored-by: Hanno Cornelius <68783915+jm-clius@users.noreply.github.com> Co-authored-by: thecirce <95408261+thecirce@users.noreply.github.com> Co-authored-by: Hanno Cornelius <68783915+jm-clius@users.noreply.github.com> Co-authored-by: thecirce <95408261+thecirce@users.noreply.github.com>
2021-12-14 05:03:25 +01:00
sh 'bundle install'
}
}
stage('Build') {
steps {
sh 'yarn run build:production'
}
}
stage('Publish Prod') {
when { expression { env.GIT_BRANCH ==~ /.*master/ } }
steps {
sshagent(credentials: ['status-im-auto-ssh']) {
sh 'yarn run deploy'
}
}
}
stage('Publish Devel') {
when { expression { !(env.GIT_BRANCH ==~ /.*master/) } }
steps {
sshagent(credentials: ['jenkins-ssh']) {
sh """
rsync -e 'ssh -o ${SCP_OPTS}' -r --delete _site/. \
${env.DEV_HOST}:/var/www/${env.DEV_SITE}/
"""
}
}
}
}
}