mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-29 16:15:54 +00:00
deploy: cc037cc74993cb4b0fd6b1252ff48baba9212c5f
This commit is contained in:
parent
33bc0b8c90
commit
1a3468b112
@ -23,7 +23,7 @@ pipeline {
|
|||||||
string(
|
string(
|
||||||
name: 'IMAGE_TAG',
|
name: 'IMAGE_TAG',
|
||||||
description: 'Name of Docker tag to push. Optional Parameter.',
|
description: 'Name of Docker tag to push. Optional Parameter.',
|
||||||
defaultValue: params.IMAGE_TAG ?: 'deploy-v2-test',
|
defaultValue: params.IMAGE_TAG ?: 'deploy-wakuv2-test',
|
||||||
)
|
)
|
||||||
string(
|
string(
|
||||||
name: 'IMAGE_NAME',
|
name: 'IMAGE_NAME',
|
||||||
@ -71,13 +71,20 @@ pipeline {
|
|||||||
variable: 'DISCORD_WEBHOOK'
|
variable: 'DISCORD_WEBHOOK'
|
||||||
),
|
),
|
||||||
]) {
|
]) {
|
||||||
|
def repo = [
|
||||||
|
url: 'https://github.com/status-im/nwaku',
|
||||||
|
branch: GIT_BRANCH.minus("origin/"),
|
||||||
|
commit: GIT_COMMIT.take(8),
|
||||||
|
prev: (env.GIT_PREVIOUS_SUCCESSFUL_COMMIT ?: env.GIT_PREVIOUS_COMMIT ?: 'master').take(8),
|
||||||
|
]
|
||||||
discordSend(
|
discordSend(
|
||||||
title: "${env.JOB_NAME}#${env.BUILD_NUMBER}",
|
title: "${env.JOB_NAME}#${env.BUILD_NUMBER}",
|
||||||
description: """
|
description: """
|
||||||
Nim-Waku deployment successful!
|
Nim-Waku deployment successful!
|
||||||
Image: [`${IMAGE_NAME}:${IMAGE_TAG}`](https://hub.docker.com/r/${IMAGE_NAME}/tags?page=1&name=${IMAGE_TAG})
|
Image: [`${IMAGE_NAME}:${IMAGE_TAG}`](https://hub.docker.com/r/${IMAGE_NAME}/tags?name=${IMAGE_TAG})
|
||||||
Branch: [`${GIT_BRANCH.minus("origin/")}`](https://github.com/status-im/nwaku/commits/${GIT_BRANCH.minus("origin/")})
|
Branch: [`${repo.branch}`](${repo.url}/commits/${repo.branch})
|
||||||
Commit: [`${GIT_COMMIT.take(8)}`](https://github.com/status-im/nwaku/commit/${GIT_COMMIT.take(8)})
|
Commit: [`${repo.commit}`](${repo.url}/commit/${repo.commit})
|
||||||
|
Diff: [`${repo.prev}...${repo.commit}`](${repo.url}/compare/${repo.prev}...${repo.commit})
|
||||||
""",
|
""",
|
||||||
link: env.BUILD_URL,
|
link: env.BUILD_URL,
|
||||||
result: currentBuild.currentResult,
|
result: currentBuild.currentResult,
|
||||||
|
@ -11,9 +11,9 @@ https://ci.status.im/job/nim-waku/
|
|||||||
It currently consists four jobs:
|
It currently consists four jobs:
|
||||||
|
|
||||||
* [manual](https://ci.status.im/job/nim-waku/job/manual/) - For manually executing builds using parameters.
|
* [manual](https://ci.status.im/job/nim-waku/job/manual/) - For manually executing builds using parameters.
|
||||||
* [deploy-v1-test](https://ci.status.im/job/nim-waku/job/deploy-v1-test/) - Builds every new commit in `master` and deploys to `wakuv1.test` fleet.
|
* [deploy-wakuv1-test](https://ci.status.im/job/nim-waku/job/deploy-wakuv1-test/) - Builds every new commit in `master` and deploys to `wakuv1.test` fleet.
|
||||||
* [deploy-v2-test](https://ci.status.im/job/nim-waku/job/deploy-v2-test/) - Builds every new commit in `master` and deploys to `wakuv2.test` fleet.
|
* [deploy-wakuv2-test](https://ci.status.im/job/nim-waku/job/deploy-wakuv2-test/) - Builds every new commit in `master` and deploys to `wakuv2.test` fleet.
|
||||||
* [deploy-v2-prod](https://ci.status.im/job/nim-waku/job/deploy-v2-prod/) - Currently has no automatic trigger, and deploys to `wakuv2.prod` fleet.
|
* [deploy-wakuv2-prod](https://ci.status.im/job/nim-waku/job/deploy-wakuv2-prod/) - Currently has no automatic trigger, and deploys to `wakuv2.prod` fleet.
|
||||||
|
|
||||||
# Configuration
|
# Configuration
|
||||||
|
|
||||||
@ -28,5 +28,5 @@ Key part is the definition of four `parameters`:
|
|||||||
|
|
||||||
The use of `?:` [Elvis operator](http://groovy-lang.org/operators.html#_elvis_operator) plays a key role in allowing parameters to be changed for each defined job in Jenkins without it being overridden by the `Jenkinsfile` defaults after every job run.
|
The use of `?:` [Elvis operator](http://groovy-lang.org/operators.html#_elvis_operator) plays a key role in allowing parameters to be changed for each defined job in Jenkins without it being overridden by the `Jenkinsfile` defaults after every job run.
|
||||||
```groovy
|
```groovy
|
||||||
defaultValue: params.IMAGE_TAG ?: 'deploy-v2-test',
|
defaultValue: params.IMAGE_TAG ?: 'deploy-wakuv2-test',
|
||||||
```
|
```
|
||||||
|
@ -62,7 +62,7 @@ git push origin v0.1
|
|||||||
> Clients are reachable via the corresponding channels on the Vac Discord server.
|
> Clients are reachable via the corresponding channels on the Vac Discord server.
|
||||||
> It should be enough to inform clients on the `#nwaku` and `#announce` channels on Discord.
|
> It should be enough to inform clients on the `#nwaku` and `#announce` channels on Discord.
|
||||||
> Informal conversations with specific repo maintainers are often part of this process.
|
> Informal conversations with specific repo maintainers are often part of this process.
|
||||||
- Deploy release to the `wakuv2.prod` fleet from [Jenkins](https://ci.status.im/job/nim-waku/job/deploy-v2-prod/).
|
- Deploy release to the `wakuv2.prod` fleet from [Jenkins](https://ci.status.im/job/nim-waku/job/deploy-wakuv2-prod/).
|
||||||
- Ensure that nodes successfully start up and monitor health using [Grafana](https://grafana.infra.status.im/d/qrp_ZCTGz/nim-waku-v2?orgId=1) and [Kibana](https://kibana.infra.status.im/goto/a7728e70-eb26-11ec-81d1-210eb3022c76).
|
- Ensure that nodes successfully start up and monitor health using [Grafana](https://grafana.infra.status.im/d/qrp_ZCTGz/nim-waku-v2?orgId=1) and [Kibana](https://kibana.infra.status.im/goto/a7728e70-eb26-11ec-81d1-210eb3022c76).
|
||||||
- If necessary, revert by deploying the previous release. Download logs and open a bug report issue.
|
- If necessary, revert by deploying the previous release. Download logs and open a bug report issue.
|
||||||
3. Deploy release image to [Dockerhub](https://hub.docker.com/layers/statusteam/nim-waku/a5f8b9/images/sha256-88691a8f82bd6a4242fa99053a65b7fc4762b23a2b4e879d0f8b578c798a0e09?context=explore) by triggering [the same Jenkins job](https://ci.status.im/job/nim-waku/job/deploy-v2-prod/) as before, but with the `IMAGE_TAG` set to the release tag (e.g. `v0.10`).
|
3. Deploy release image to [Dockerhub](https://hub.docker.com/layers/statusteam/nim-waku/a5f8b9/images/sha256-88691a8f82bd6a4242fa99053a65b7fc4762b23a2b4e879d0f8b578c798a0e09?context=explore) by triggering [the same Jenkins job](https://ci.status.im/job/nim-waku/job/deploy-wakuv2-prod/) as before, but with the `IMAGE_TAG` set to the release tag (e.g. `v0.10`).
|
||||||
|
@ -80,8 +80,8 @@ Please report any broken panels via our Discord channels or by [creating an issu
|
|||||||
### 4. [Jenkins](https://ci.status.im/job/nim-waku/) for deployment
|
### 4. [Jenkins](https://ci.status.im/job/nim-waku/) for deployment
|
||||||
|
|
||||||
The [`nim-waku` jobs](https://ci.status.im/job/nim-waku/) on Jenkins are configured to deploy `nim-waku` builds to the fleets.
|
The [`nim-waku` jobs](https://ci.status.im/job/nim-waku/) on Jenkins are configured to deploy `nim-waku` builds to the fleets.
|
||||||
1. [`deploy-v2-test`](https://ci.status.im/job/nim-waku/job/deploy-v2-test/) is triggered automatically after every commit to the `nim-waku` `master` branch.
|
1. [`deploy-wakuv2-test`](https://ci.status.im/job/nim-waku/job/deploy-wakuv2-test/) is triggered automatically after every commit to the `nim-waku` `master` branch.
|
||||||
2. [`deploy-v2-prod`](https://ci.status.im/job/nim-waku/job/deploy-v2-prod/) must be triggered manually. Usually this job is only built after a tagged release in `nim-waku`.
|
2. [`deploy-wakuv2-prod`](https://ci.status.im/job/nim-waku/job/deploy-wakuv2-prod/) must be triggered manually. Usually this job is only built after a tagged release in `nim-waku`.
|
||||||
|
|
||||||
Each job can be manually triggered using the _"Build with Parameters"_ option.
|
Each job can be manually triggered using the _"Build with Parameters"_ option.
|
||||||
Options under _"Configure"_ include the build triggers, build target and branches to build.
|
Options under _"Configure"_ include the build triggers, build target and branches to build.
|
||||||
@ -99,8 +99,8 @@ See [Continuous Integration docs](https://github.com/status-im/nim-waku/blob/mas
|
|||||||
6. [`infra-docs` repo](https://github.com/status-im/infra-docs)
|
6. [`infra-docs` repo](https://github.com/status-im/infra-docs)
|
||||||
7. [`infra-nim-waku` repo](https://github.com/status-im/infra-nim-waku)
|
7. [`infra-nim-waku` repo](https://github.com/status-im/infra-nim-waku)
|
||||||
8. [Jenkins jobs for `nim-waku`](https://ci.status.im/job/nim-waku/)
|
8. [Jenkins jobs for `nim-waku`](https://ci.status.im/job/nim-waku/)
|
||||||
9. [Jenkins deploy-v2-prod manual trigger](https://ci.status.im/job/nim-waku/job/deploy-v2-prod/build)
|
9. [Jenkins deploy-wakuv2-prod manual trigger](https://ci.status.im/job/nim-waku/job/deploy-wakuv2-prod/build)
|
||||||
10. [Jenkins deploy-v2-test manual trigger](https://ci.status.im/job/nim-waku/job/deploy-v2-test/build)
|
10. [Jenkins deploy-wakuv2-test manual trigger](https://ci.status.im/job/nim-waku/job/deploy-wakuv2-test/build)
|
||||||
11. [Kibana logs for `prod`](https://kibana.infra.status.im/goto/87fde8e4bba7246ce3780a0c8344f4f0)
|
11. [Kibana logs for `prod`](https://kibana.infra.status.im/goto/87fde8e4bba7246ce3780a0c8344f4f0)
|
||||||
12. [Kibana logs for `test`](https://kibana.infra.status.im/goto/fc23759670fd08e9d32e81bb4e58733d)
|
12. [Kibana logs for `test`](https://kibana.infra.status.im/goto/fc23759670fd08e9d32e81bb4e58733d)
|
||||||
13. [Status fleets](https://fleets.status.im/)
|
13. [Status fleets](https://fleets.status.im/)
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# libtool - Provide generalized library-building support services.
|
# libtool - Provide generalized library-building support services.
|
||||||
# Generated automatically by config.status (libbacktrace) version-unused
|
# Generated automatically by config.status (libbacktrace) version-unused
|
||||||
# Libtool was configured on host fv-az186-323:
|
# Libtool was configured on host fv-az508-830:
|
||||||
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
|
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
|
||||||
#
|
#
|
||||||
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user