Skip to content

Commit e3bc991

Browse files
authored
Added Netlify Github Action and one readme change. (#25)
* Added Netlify Github Action and one readme change. Signed-off-by: Jonsy13 <vedant.shrotria@chaosnative.com>
1 parent 6788566 commit e3bc991

File tree

5 files changed

+47
-29
lines changed

5 files changed

+47
-29
lines changed

.github/workflows/Pull_Request.yml

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,22 @@
11
name: LitmusDocs-CI
22
on:
33
pull_request:
4-
types: [ opened, synchronize, reopened ]
4+
types: [opened, synchronize, reopened]
55
paths:
6-
- '.github/workflows/dockerbuild.yml'
7-
- '.github/workflows/Pull_Request.yml'
8-
- 'website/**'
6+
- "website/**"
97

108
jobs:
119
embedmdCheck_and_linksVerification:
1210
runs-on: ubuntu-latest
1311
steps:
14-
1512
- uses: actions/checkout@v2
1613
with:
17-
ref: ${{steps.getcommit.outputs.sha}}
14+
ref: ${{steps.getcommit.outputs.sha}}
1815

1916
- uses: actions/setup-go@v2
2017
with:
21-
stable: 'false'
22-
go-version: '1.14.0'
18+
stable: "false"
19+
go-version: "1.14.0"
2320

2421
- name: Links Verification
2522
run: |
@@ -32,10 +29,10 @@ jobs:
3229
go get github.com/campoy/embedmd
3330
cd website/docs
3431
embedmd -w $(find *.md)
35-
continue-on-error: true
36-
32+
continue-on-error: true
33+
3734
- name: embedmd check
38-
run: |
35+
run: |
3936
export TERM=xterm-256color
4037
count=$(git status -s| wc -l)
4138
if [ "$count" -ne "0" ]
@@ -53,7 +50,7 @@ jobs:
5350
tput setaf 2; echo "Nothing to embed"
5451
fi
5552
shell: sh
56-
53+
5754
ci:
5855
runs-on: ubuntu-18.04
5956
steps:
@@ -65,11 +62,10 @@ jobs:
6562
Spellcheck:
6663
runs-on: ubuntu-latest
6764
steps:
68-
# The checkout step
69-
- uses: actions/checkout@master
70-
- uses: rojopolis/spellcheck-github-actions@0.11.0
71-
name: Spellcheck
72-
with:
73-
source_files: 'website/docs/*.md'
74-
task_name: Markdown
75-
65+
# The checkout step
66+
- uses: actions/checkout@master
67+
- uses: rojopolis/spellcheck-github-actions@0.11.0
68+
name: Spellcheck
69+
with:
70+
source_files: "website/docs/*.md"
71+
task_name: Markdown

.github/workflows/docker_Push.yml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ on:
55
branches:
66
- master
77
paths:
8-
- '.github/workflows/dockerbuild.yml'
9-
- '.github/workflows/Pull_Request.yml'
10-
- 'website/**'
8+
- "website/**"
119

1210
jobs:
1311
cd:
@@ -26,5 +24,24 @@ jobs:
2624
run: |
2725
docker build -t ${GITHUB_REPOSITORY}:${{ steps.vars.outputs.branch }}-${{ steps.vars.outputs.sha_short }} .
2826
docker push ${GITHUB_REPOSITORY}:${{ steps.vars.outputs.branch }}-${{ steps.vars.outputs.sha_short }}
29-
3027
28+
netlify-deploy:
29+
runs-on: ubuntu-latest
30+
steps:
31+
- uses: actions/checkout@v2
32+
- name: Use Node.js 12.x
33+
uses: actions/setup-node@v1
34+
with:
35+
node-version: 12.x
36+
# Run npm install and build on our code
37+
- run: |
38+
cd website
39+
npm install
40+
npm run build
41+
# Deploy to Netlify using our production secrets
42+
- uses: netlify/actions/cli@master
43+
env:
44+
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
45+
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
46+
with:
47+
args: deploy --dir=website/build --prod

.wordlist.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,6 +693,12 @@ ZTN
693693
html
694694
XXXXXXXXXXXXXXX
695695
XXXXXXXXXXXXXXXXXXX
696+
Worklfow
697+
LitmusPortal
698+
abc
699+
litmusctl
700+
subcommand
701+
Litmusctl
696702
gz
697703
zxvf
698704
MacOS
@@ -712,4 +718,4 @@ CertManager
712718
installCRDs
713719
jetstack
714720
ClusterMode
715-
LetsEncrypt
721+
LetsEncrypt

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ Additional details on the Docusaurus project can be found [here](https://docusau
2424

2525
## For Developers
2626

27-
### Clone litmus-docs repository
27+
### Clone litmus-docs-beta repository
2828

2929
```bash
30-
git clone https://github.com/litmuschaos/litmus-docs.git
31-
cd litmus-docs
30+
git clone https://github.com/litmuschaos/litmus-docs-beta.git
31+
cd litmus-docs-beta
3232
```
3333

3434
The docs website server can be setup manually or through docker compose

website/docs/agent-installation.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ As part of Litmus installation by default, a self cluster would be registered as
1313

1414
As you are aware by now, Portal is a Cross Cloud Chaos Control plane. That is you can connect multiple external kubernetes agents to this portal. Once connected you can manage the chaos from the Portal that is you can induce chaos into this agent from the Portal and observe the results from the Portal. Using the command line utility _litmusctl_ you can connect the external agents to the Portal.
1515

16-
1716
# Litmusctl
1817

1918
Litmusctl is a command line interface to manage LitmusPortal services.

0 commit comments

Comments
 (0)