jenkinsfile: allow deploy of dev site
Signed-off-by: markoburcul <marko@status.im>
This commit is contained in:
parent
640798f1ad
commit
b38c3be3c0
|
@ -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' }
|
|
@ -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).
|
||||
|
||||
|
|
Loading…
Reference in New Issue