You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GitHub Action for creating and running [starship devnets](https://github.com/hyperweb-io/starship) in CI.
9
10
10
11
## Usage
@@ -16,24 +17,68 @@ For more information, reference the GitHub Help Documentation for [Creating a wo
16
17
17
18
### Inputs
18
19
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 |
29
30
30
31
### 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 |
33
36
34
-
### Example workflow
37
+
### Example Configuration
35
38
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`):
37
82
```yaml
38
83
name: Create Starship devnet
39
84
@@ -51,3 +96,32 @@ jobs:
51
96
with:
52
97
config: ./starship-config.yaml
53
98
```
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
0 commit comments