@@ -13,6 +13,10 @@ This will break CI workflow pipelines, blocking artifacts from being deployed.
1313In this situation there is a built-in mechanism to instantly turn Kosli off and keep the pipelines flowing.
1414When Kosli is back up, you can instantly turn Kosli back on.
1515
16+ {{% hint info %}}
17+ You can check the current status of Kosli services at https://status.app.kosli.com or by running ` kosli status ` in the CLI.
18+ {{% /hint %}}
19+
1620## Turning Kosli CLI calls on and off instantly
1721
1822If the ` KOSLI_DRY_RUN ` environment variable is set to ` true ` then all Kosli CLI commands will:
@@ -21,7 +25,7 @@ If the `KOSLI_DRY_RUN` environment variable is set to `true` then all Kosli CLI
2125* Exit with a zero status code
2226
2327We recommend creating an Org-level KOSLI_DRY_RUN variable in your CI system and, in all CI workflows,
24- ensuring there is an environment variable set from it.
28+ ensuring there is an environment variable set from it.
2529
2630For example, in a [ Github Action workflow] ( https://github.com/cyber-dojo/differ/blob/main/.github/workflows/main.yml ) :
2731
3236 KOSLI_DRY_RUN : ${{ vars.KOSLI_DRY_RUN }} # true iff Kosli is down
3337` ` `
3438
35-
3639## Turning Kosli API calls on and off instantly
3740
38- If you are using the Kosli API in your workflows (e.g. using ` curl`), we recommend using the same Org-level `KOSLI_DRY_RUN`
41+ If you are using the Kosli API in your workflows (e.g. using ` curl`), we recommend using the same Org-level `KOSLI_DRY_RUN`
3942environment variable and guarding the `curl` call with a simple if statement. For example :
4043
4144` ` ` shell
@@ -54,7 +57,3 @@ kosli_curl()
5457 fi
5558}
5659` ` `
57-
58-
59-
60-
0 commit comments