Skip to content

Commit

Permalink
fix exclusion logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Veki301 committed Jan 8, 2025
1 parent ea9361f commit a721503
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions offline/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ set -euo pipefail

INCREMENTAL="${INCREMENTAL:-0}"

# Default exclude list
HELM_CHART_EXCLUDE_LIST="inbucket, wire-server-enterprise"
# Default exclude list, temporary wire-server-enterprise exclusion due to access privileges
HELM_CHART_EXCLUDE_LIST="inbucket,wire-server-enterprise"

# Parse the HELM_CHART_EXCLUDE_LIST argument
for arg in "$@"
Expand Down Expand Up @@ -156,7 +156,7 @@ wire_build_chart_release () {
wire_build="$1"
curl "$wire_build" | jq -r --argjson HELM_CHART_EXCLUDE_LIST "$HELM_CHART_EXCLUDE_LIST" '
.helmCharts
| with_entries(select([.key] | inside($HELM_CHART_EXCLUDE_LIST) | not))
| with_entries(select(.key as $k | $HELM_CHART_EXCLUDE_LIST | index($k) | not))
| to_entries
| map("\(.key) \(.value.repo) \(.value.version)")
| join("\n")
Expand Down Expand Up @@ -205,8 +205,6 @@ pull_charts() {
wire_build="https://raw.githubusercontent.com/wireapp/wire-builds/5dcc99aa4e182672030ae38c5f94604dcefa51d1/build.json"
wire_build_chart_release "$wire_build" | pull_charts

ls charts/

# Uncomment if you want to create non-wire-build release
# and uncomment the other pull_charts call from aboe
# legacy_chart_release | pull_charts
Expand Down

0 comments on commit a721503

Please sign in to comment.