Skip to content

Commit

Permalink
upgrade starship-action to use the latest versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Anmol1696 committed Jun 21, 2024
1 parent 7855f46 commit 0380812
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 18 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ jobs:
- name: Create yaml file
run: |
cat <<EOF > config.yaml
name: osmo-wasm
version: v0.2.6
chains:
- id: osmosis-1
name: osmosis
Expand Down Expand Up @@ -114,6 +117,9 @@ jobs:
- name: Create yaml file
run: |
cat <<EOF > config.yaml
name: osmois
version: v0.2.6
chains:
- id: osmosis-1
name: osmosis
Expand Down Expand Up @@ -156,6 +162,9 @@ jobs:
- name: Create yaml file
run: |
cat <<EOF > config.yaml
name: osmosis
version: v0.2.6
chains:
- id: osmosis-1
name: osmosis
Expand Down
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ For more information, reference the GitHub Help Documentation for [Creating a wo
For more information on inputs, see the [API Documentation](https://developer.github.com/v3/repos/releases/#input)

- `config`: Required, config file for helm chart for starship devnet inputs
- `version`: Optional, version of devnet helm chart from starship (default: `0.2.3`)
- `cli-version`: Optional, version of @starship-ci/cli to use (default: `2.4.0`)
- `cli-version`: Optional, version of @starship-ci/cli to use (default: `2.8.0`)
- `kubeconfig`: Optional, Kubeconfig for remote cluster, if set, will be used instead of creating local kind cluster
- `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 }}`)
- `repo`: Optional, Helm repo to fetch the chart from (default: https://cosmology-tech.github.io/starship)
Expand All @@ -44,8 +43,7 @@ jobs:
- uses: actions/checkout@v4

- name: Create starship devnet for osmos and wasm
uses: cosmology-tech/starship-action@v0.4.4
uses: cosmology-tech/starship-action@v0.5.4
with:
config: ./starship-config.yaml
version: v0.2.3 # helm chart version
```
20 changes: 6 additions & 14 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,10 @@ inputs:
config:
description: "Path to the config file"
required: true
version:
description: "Version of devnet chart (default: v0.2.3)"
required: false
default: "v0.2.5"
cli-version:
description: "Version of @starship-ci/cli to use: default: 2.3.0"
description: "Version of @starship-ci/cli to use: default: 2.8.1"
required: false
default: "2.7.0"
default: "2.8.1"
kubeconfig:
description: "Kubeconfig file for remote cluster, if set, will be used instead of creating kind cluster"
required: false
Expand Down Expand Up @@ -129,9 +125,8 @@ runs:
- name: Setup starship helm repo
run: |
starship setup \
--config ${{ inputs.config }} \
--helmName ${{ inputs.name }} \
--helmVersion ${{ inputs.version }} \
--helmFile ${{ inputs.config }} \
--helmNamespace ${{ steps.set-namespace.outputs.namespace }} \
--helmChart ${{ inputs.chart }}
shell: bash
Expand All @@ -143,9 +138,8 @@ runs:
helm delete ${{ inputs.name }} --debug --namespace ${{ steps.set-namespace.outputs.namespace }} --wait || true
sleep 5
starship start \
--config ${{ inputs.config }} \
--helmName ${{ inputs.name }} \
--helmVersion ${{ inputs.version }} \
--helmFile ${{ inputs.config }} \
--helmNamespace ${{ steps.set-namespace.outputs.namespace }} \
--helmChart ${{ inputs.chart }}
shell: bash
Expand Down Expand Up @@ -174,9 +168,8 @@ runs:
sleep 5
kubectl get pods --namespace ${{ steps.set-namespace.outputs.namespace }}
starship start \
--config ${{ inputs.config }} \
--helmName ${{ inputs.name }} \
--helmVersion ${{ inputs.version }} \
--helmFile ${{ inputs.config }} \
--helmNamespace ${{ steps.set-namespace.outputs.namespace }} \
--helmChart ${{ inputs.chart }}
shell: bash
Expand All @@ -189,9 +182,8 @@ runs:
sleep 5
kubectl get pods --namespace ${{ steps.set-namespace.outputs.namespace }}
starship start \
--config ${{ inputs.config }} \
--helmName ${{ inputs.name }} \
--helmVersion ${{ inputs.version }} \
--helmFile ${{ inputs.config }} \
--helmNamespace ${{ steps.set-namespace.outputs.namespace }} \
--helmChart ${{ inputs.chart }}
shell: bash

0 comments on commit 0380812

Please sign in to comment.