Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: add timeout as input #33

Merged
merged 2 commits into from
Oct 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ For more information on inputs, see the [API Documentation](https://developer.gi
- `repo`: Optional, Helm repo to fetch the chart from (default: https://cosmology-tech.github.io/starship)
- `name`: Optional, Release name for the helm chart deployment (default: `starship-devnet`)
- `chart`: Optional, Name of the help chart to use. Recommended: use default (default: `starship/devnet`)
- `timeout`: Optional, Timeout for helm install (default: `10m`)

### Outputs
- `namespace`: Namespace where the devnet is deployed
Expand All @@ -43,7 +44,7 @@ jobs:
- uses: actions/checkout@v4

- name: Create starship devnet for osmos and wasm
uses: cosmology-tech/[email protected].4
uses: cosmology-tech/[email protected].6
with:
config: ./starship-config.yaml
```
17 changes: 12 additions & 5 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ inputs:
description: "Path to the config file"
required: true
cli-version:
description: "Version of @starship-ci/cli to use: default: 2.9.0"
description: "Version of @starship-ci/cli to use: default: 2.10.2"
required: false
default: "2.9.0"
default: "2.10.2"
kubeconfig:
description: "Kubeconfig file for remote cluster, if set, will be used instead of creating kind cluster"
required: false
Expand All @@ -32,6 +32,10 @@ inputs:
description: "Kubernetes namespace to deploy helm charts on (default: ci-{github.repository}-{github.workflow}-{github.ref} )"
required: false
default: ""
timeout:
description: "Timeout for helm install (default: 10m)"
required: false
default: "10m"

outputs:
namespace:
Expand Down Expand Up @@ -141,7 +145,8 @@ runs:
--config ${{ inputs.config }} \
--name ${{ inputs.name }} \
--namespace ${{ steps.set-namespace.outputs.namespace }} \
--chart ${{ inputs.chart }}
--chart ${{ inputs.chart }} \
--timeout ${{ inputs.timeout }}
shell: bash

- name: Logs
Expand Down Expand Up @@ -172,7 +177,8 @@ runs:
--config ${{ inputs.config }} \
--name ${{ inputs.name }} \
--namespace ${{ steps.set-namespace.outputs.namespace }} \
--chart ${{ inputs.chart }}
--chart ${{ inputs.chart }} \
--timeout ${{ inputs.timeout }}
shell: bash

- name: Helm install again, 3rd time is the charm
Expand All @@ -186,5 +192,6 @@ runs:
--config ${{ inputs.config }} \
--name ${{ inputs.name }} \
--namespace ${{ steps.set-namespace.outputs.namespace }} \
--chart ${{ inputs.chart }}
--chart ${{ inputs.chart }} \
--timeout ${{ inputs.timeout }}
shell: bash
Loading