Skip to content

Commit

Permalink
[bitnami/grafana] Hack for version test (#75811)
Browse files Browse the repository at this point in the history
Signed-off-by: David Gomez <[email protected]>
  • Loading branch information
dgomezleon authored Dec 18, 2024
1 parent 68bac55 commit c4ab18e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .vib/grafana/goss/vars.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ binaries:
root_dir: /opt/bitnami
version:
# HACK: Fix for Grafana X.Y.Z+security-N releases
# HACK: https://github.com/grafana/grafana/issues/98169
bin_name: bash
flag: -c "if [[ \"$APP_VERSION\" =~ -[0-9]+ ]]; then echo "$(grafana --version|awk '{ print $NF }')-${APP_VERSION#*-}"; else grafana --version|awk '{ print $NF }'; fi"
flag: -c "if [[ \"$APP_VERSION\" = \"11.4.0\" ]]; then echo 11.4.0; elif [[ \"$APP_VERSION\" =~ -[0-9]+ ]]; then echo "$(grafana --version|awk '{ print $NF }')-${APP_VERSION#*-}"; else grafana --version|awk '{ print $NF }'; fi"
files:
- mode: "0664"
paths:
Expand Down

0 comments on commit c4ab18e

Please sign in to comment.