Skip to content

Commit b45883d

Browse files
authored
Merge pull request #39 from hyperweb-io/anmol/upgrade-readme
feature: upgrade readme of starship action completely
2 parents 79adfd3 + b3a134e commit b45883d

File tree

1 file changed

+89
-15
lines changed

1 file changed

+89
-15
lines changed

README.md

Lines changed: 89 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22

33
<p align="left" width="100%">
44
<a href="https://github.com/hyperweb-io/starship-action/actions/workflows/test.yaml"><img height="20" src="https://github.com/hyperweb-io/starship-action/actions/workflows/test.yaml/badge.svg"></a>
5+
<a href="https://github.com/hyperweb-io/starship-action/releases/latest"><img height="20" src="https://img.shields.io/github/v/release/hyperweb-io/starship-action"></a>
6+
<a href="https://github.com/hyperweb-io/starship-action/blob/main/LICENSE"><img height="20" src="https://img.shields.io/badge/license-MIT-blue.svg"></a>
57
</p>
68

7-
89
GitHub Action for creating and running [starship devnets](https://github.com/hyperweb-io/starship) in CI.
910

1011
## Usage
@@ -16,24 +17,68 @@ For more information, reference the GitHub Help Documentation for [Creating a wo
1617

1718
### Inputs
1819

19-
For more information on inputs, see the [API Documentation](https://developer.github.com/v3/repos/releases/#input)
20-
21-
- `config`: Required, config file for helm chart for starship devnet inputs
22-
- `cli-version`: Optional, version of @starship-ci/cli to use (default: `3.10.0`)
23-
- `kubeconfig`: Optional, Kubeconfig for remote cluster, if set, will be used instead of creating local kind cluster
24-
- `namespace`: Optional, Kubernetes namespace to which helm charts will be deployed. If not found, namespace will be created. (default: `ci-${{ github.repository }}-${{ github.workflow }}-${{ github.ref }}`)
25-
- `repo`: Optional, Helm repo to fetch the chart from (default: https://hyperweb-io.github.io/starship)
26-
- `name`: Optional, Release name for the helm chart deployment (default: `starship-devnet`)
27-
- `chart`: Optional, Name of the help chart to use. Recommended: use default (default: `starship/devnet`)
28-
- `timeout`: Optional, Timeout for helm install (default: `10m`)
20+
| Input | Required | Default | Description |
21+
|-------|----------|---------|-------------|
22+
| `config` | Yes | - | Path to the config file for helm chart for starship devnet inputs |
23+
| `cli-version` | No | `3.10.0` | Version of @starship-ci/cli to use |
24+
| `kubeconfig` | No | - | Kubeconfig for remote cluster. If set, will be used instead of creating local kind cluster |
25+
| `namespace` | No | `ci-${{ github.repository }}-${{ github.workflow }}-${{ github.ref }}` | Kubernetes namespace for helm chart deployment |
26+
| `repo` | No | `https://hyperweb-io.github.io/starship` | Helm repo URL to fetch the chart from |
27+
| `name` | No | `starship-devnet` | Release name for the helm chart deployment |
28+
| `chart` | No | `starship/devnet` | Name of the helm chart to use |
29+
| `timeout` | No | `10m` | Timeout duration for helm install |
2930

3031
### Outputs
31-
- `namespace`: Namespace where the devnet is deployed
32-
- `name`: Name of the helm chart, same as `name` input
32+
| Output | Description |
33+
|--------|-------------|
34+
| `namespace` | Namespace where the devnet is deployed |
35+
| `name` | Name of the helm chart, same as `name` input |
3336

34-
### Example workflow
37+
### Example Configuration
3538

36-
Chreate a workflow (eg: `.github/workflows/starship.yaml`)
39+
Create a config file (eg: `starship-config.yaml`):
40+
```yaml
41+
name: starship-localnet
42+
version: 1.7.0
43+
44+
chains:
45+
- id: osmosis-1
46+
name: osmosis
47+
numValidators: 2
48+
ports:
49+
rest: 1313
50+
rpc: 26653
51+
faucet: 8003
52+
- id: cosmoshub-4
53+
name: cosmoshub
54+
numValidators: 2
55+
ports:
56+
rest: 1317
57+
rpc: 26657
58+
faucet: 8007
59+
60+
relayers:
61+
- name: osmos-cosmos
62+
type: hermes
63+
replicas: 1
64+
chains:
65+
- osmosis-1
66+
- cosmoshub-4
67+
68+
explorer:
69+
enabled: true
70+
ports:
71+
rest: 8080
72+
73+
registry:
74+
enabled: true
75+
ports:
76+
rest: 8081
77+
```
78+
79+
### Example Workflow
80+
81+
Create a workflow (eg: `.github/workflows/starship.yaml`):
3782
```yaml
3883
name: Create Starship devnet
3984
@@ -51,3 +96,32 @@ jobs:
5196
with:
5297
config: ./starship-config.yaml
5398
```
99+
100+
### Troubleshooting
101+
102+
#### Common Issues
103+
104+
1. **Kubeconfig Issues**
105+
- If using a remote cluster, ensure the kubeconfig file is properly formatted
106+
- Check that the kubeconfig has the correct permissions
107+
108+
2. **Helm Chart Issues**
109+
- Verify the chart name and repository are correct
110+
- Check that the specified version is available in the repository
111+
112+
3. **Namespace Issues**
113+
- Ensure the namespace doesn't contain invalid characters
114+
- Check that you have permissions to create/use the specified namespace
115+
116+
## Related Projects
117+
118+
- [Starship](https://github.com/hyperweb-io/starship) - Universal interchain development environment in k8s
119+
- [Cosmology](https://github.com/hyperweb-io) - Interchain JavaScript Stack
120+
121+
## Credits
122+
123+
🛠 Built by Hyperweb (formerly Cosmology) — if you like our tools, please checkout and contribute to [our github ⚛️](https://github.com/hyperweb-io)
124+
125+
## License
126+
127+
MIT © [Hyperweb](https://github.com/hyperweb-io)

0 commit comments

Comments
 (0)