Skip to content

Commit

Permalink
Create additional file with chart's version (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
antonu17 authored and msiegenthaler committed May 29, 2019
1 parent 2faaa31 commit 82beadb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ Downloads the chart that was discovered during the `check` phase as a tar.
- `untardir`: *Optional.* Name of the directory that untar will extract to.
- `verify`: *Optional.* Verify the package against its signature. Defaults to `false`.

#### Additional files populated

- `version`: Version of helm chart discovered and downloaded

### `out`: No operation.

## Examples
Expand Down
3 changes: 3 additions & 0 deletions assets/in
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ fi

helm fetch $chart --version $current_ver -d $1 $flags

# Additional files populated
printf "%s" "$current_ver" > "$1/version"

metadata=$(echo $chart | jq -R "{name: \"chart\", value: .}")
jq -n "{
version: {version: $(echo $current_ver | jq -R .)},
Expand Down

0 comments on commit 82beadb

Please sign in to comment.