Skip to content

Commit 255b171

Browse files
committed
change nosana market to premium
1 parent d38e6de commit 255b171

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

.github/workflows/build-deploy.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ env:
1414
LLM_API_KEY: ${{ secrets.GEMINI_API_KEY }}
1515
NOSANA_API_BASE: https://dashboard.k8s.prd.nos.ci/api
1616
NOSANA_MARKET_FILTER: 3090
17+
NOSANA_MARKET_TYPE: PREMIUM
1718

1819
jobs:
1920
build-android:
@@ -101,15 +102,20 @@ jobs:
101102
response=$(curl -sS \
102103
-H "Authorization: Bearer ${{ env.NOSANA_API_KEY }}" \
103104
"${{ env.NOSANA_API_BASE }}/markets/")
104-
market_address=$(printf '%s' "$response" | jq -r --arg filter "${{ env.NOSANA_MARKET_FILTER }}" '
105+
market_address=$(printf '%s' "$response" | jq -r --arg filter "${{ env.NOSANA_MARKET_FILTER }}" --arg marketType "${{ env.NOSANA_MARKET_TYPE }}" '
105106
map(select(
106-
((.name // "") | ascii_downcase | contains($filter))
107-
or ((.gpu // "") | ascii_downcase | contains($filter))
107+
(.type == $marketType)
108+
and
109+
(
110+
((.name // "") | ascii_downcase | contains($filter))
111+
or
112+
((.gpu // "") | ascii_downcase | contains($filter))
113+
)
108114
))
109115
| .[0].address // empty
110116
')
111117
test -n "$market_address" || {
112-
echo "Unable to resolve Nosana market address for filter: ${{ env.NOSANA_MARKET_FILTER }}"
118+
echo "Unable to resolve Nosana ${{ env.NOSANA_MARKET_TYPE }} market address for filter: ${{ env.NOSANA_MARKET_FILTER }}"
113119
echo "$response"
114120
exit 1
115121
}

0 commit comments

Comments
 (0)