mirror of https://github.com/vacp2p/rfc.git
ci: add Jenkinsfile for site CI builds (#558)
Depends on: https://github.com/status-im/infra-misc/commit/4a953922 Resolves: https://github.com/vacp2p/rfc/issues/557 Signed-off-by: Jakub Sokołowski <jakub@status.im> Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
5b798cce3c
commit
58c2ac192e
|
@ -39,6 +39,10 @@ Once installed, the following command can be used to generate the sequence diagr
|
||||||
More details on the installation and compilation are given in [mscgenjs repository](https://github.com/mscgenjs/mscgenjs-cli).
|
More details on the installation and compilation are given in [mscgenjs repository](https://github.com/mscgenjs/mscgenjs-cli).
|
||||||
You may try the online playground https://mscgen.js.org/ as well to get a sense of the output figures.
|
You may try the online playground https://mscgen.js.org/ as well to get a sense of the output figures.
|
||||||
|
|
||||||
|
# Continuous Integration
|
||||||
|
|
||||||
|
The `master` branch is built by [our Jenkins instance](https://ci.infra.status.im/job/website/job/rfc.vac.dev/) and deployed to https://rfc.vac.dev/.
|
||||||
|
|
||||||
## Acknowledgement
|
## Acknowledgement
|
||||||
|
|
||||||
Site layout and process inspired by https://rfc.zeromq.org/
|
Site layout and process inspired by https://rfc.zeromq.org/
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
FROM alpine:3.17
|
||||||
|
|
||||||
|
LABEL maintainer="jakub@status.im"
|
||||||
|
LABEL source="https://github.com/vacp2p/rfc"
|
||||||
|
LABEL description="rfc.vac.dev build image"
|
||||||
|
|
||||||
|
RUN apk add --no-cache \
|
||||||
|
openssh-client-common \
|
||||||
|
openssh-client-default \
|
||||||
|
git hugo py3-pip
|
||||||
|
|
||||||
|
RUN pip install ghp-import
|
||||||
|
|
||||||
|
# Jenkins user needs a specific UID/GID to work.
|
||||||
|
RUN addgroup -g 1001 jenkins \
|
||||||
|
&& adduser -D -u 1001 -G jenkins jenkins
|
|
@ -0,0 +1,38 @@
|
||||||
|
pipeline {
|
||||||
|
agent {
|
||||||
|
dockerfile {
|
||||||
|
label 'linux'
|
||||||
|
dir 'ci'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
options {
|
||||||
|
disableConcurrentBuilds()
|
||||||
|
buildDiscarder(logRotator(
|
||||||
|
numToKeepStr: '20',
|
||||||
|
daysToKeepStr: '30',
|
||||||
|
))
|
||||||
|
}
|
||||||
|
|
||||||
|
environment {
|
||||||
|
GIT_COMMITTER_NAME = 'status-im-auto'
|
||||||
|
GIT_COMMITTER_EMAIL = 'auto@status.im'
|
||||||
|
GIT_SSH_COMMAND = 'ssh -o StrictHostKeyChecking=no'
|
||||||
|
}
|
||||||
|
|
||||||
|
stages {
|
||||||
|
stage('Build') {
|
||||||
|
steps {
|
||||||
|
sh 'hugo'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('Publish Prod') {
|
||||||
|
steps {
|
||||||
|
sshagent(credentials: ['status-im-auto-ssh']) {
|
||||||
|
sh 'ghp-import -p public'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,6 +0,0 @@
|
||||||
[build]
|
|
||||||
command = "hugo"
|
|
||||||
publish = "public"
|
|
||||||
|
|
||||||
[build.environment]
|
|
||||||
HUGO_VERSION = "0.80.0"
|
|
|
@ -0,0 +1 @@
|
||||||
|
rfc.vac.dev
|
Loading…
Reference in New Issue