Author SHA1 Message Date
marko 938f0e4534 test: test webhook
Signed-off-by: markoburcul <marko@status.im>
2024-11-07 08:25:48 +01:00
Marko Burčul 24a3023288 Merge pull request #7 from status-im/allow-dev-page-to-build
jenkinsfile: allow deploy of dev site
2024-10-30 12:22:45 +01:00
marko b38c3be3c0 jenkinsfile: allow deploy of dev site
Signed-off-by: markoburcul <marko@status.im>
2024-10-30 12:12:32 +01:00
2 changed files with 9 additions and 4 deletions
Vendored
+7 -3
View File
@@ -42,8 +42,8 @@ pipeline {
script {
nix.develop("""
ghp-import \
-b deploy-master \
-c docs.status.network \
-b ${deployBranch()} \
-c ${deployDomain()} \
-p build
""",
pure: false
@@ -57,4 +57,8 @@ pipeline {
post {
cleanup { cleanWs() }
}
}
}
def isMasterBranch() { GIT_BRANCH ==~ /.*master/ }
def deployBranch() { isMasterBranch() ? 'deploy-master' : 'deploy-develop' }
def deployDomain() { isMasterBranch() ? 'docs.status.network' : 'dev-docs.status.network' }
+2 -1
View File
@@ -1,7 +1,7 @@
# Status Network Documentation
Welcome to the official documentation for Status Network! This repository contains the source code for our documentation website, built using [Docusaurus](https://docusaurus.io/), a modern static website generator.
test
## 🚀 Getting Started
### Prerequisites
@@ -45,6 +45,7 @@ This command generates static content into the `build` directory and can be serv
## CI/CD
- [CI builds](https://ci.infra.status.im/job/website/job/docs.status.network/) `master` and pushes to `deploy-master` branch, which is hosted at <https://docs.status.network/>.
- [CI builds dev](https://ci.infra.status.im/job/website/job/dev-docs.status.network/) `develop` and pushes to `deploy-develop` branch, which is hosted at <https://dev-docs.status.network/>.
The hosting is done using [Caddy server with Git plugin for handling GitHub webhooks](https://github.com/status-im/infra-misc/blob/master/ansible/roles/caddy-git).