mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-08 19:44:57 -05:00
chore: select latest env image for timestamp check
- otherwise we can get preflight images
This commit is contained in:
@@ -57,7 +57,8 @@ ENV_JSON=$(curl \
|
||||
-H "Authorization: token ${TOKEN}" \
|
||||
"${ENV_IMG_ENDPOINT_URL}")
|
||||
|
||||
LATEST_ENV_IMG_JSON=$(echo "${ENV_JSON}" | jq -rc 'sort_by(.updated_at)[-1]')
|
||||
LATEST_ENV_IMG_JSON=$(echo "${ENV_JSON}" | \
|
||||
jq -rc '.[] | select(.metadata.container.tags[] | contains("latest"))')
|
||||
|
||||
ENV_IMG_TAG=$(echo "${LATEST_ENV_IMG_JSON}" | \
|
||||
jq -rc '.metadata.container.tags - ["latest"] | .[0]')
|
||||
|
||||
Reference in New Issue
Block a user