Add token header to image metadata validation
All checks were successful
Docker Build and Push / docker (push) Successful in 1m48s
All checks were successful
Docker Build and Push / docker (push) Successful in 1m48s
This commit is contained in:
@@ -41,7 +41,13 @@ jobs:
|
|||||||
|
|
||||||
- name: Validate Image Verify Metadata
|
- name: Validate Image Verify Metadata
|
||||||
run: |
|
run: |
|
||||||
|
if [ -z "${FIXED_TOKEN:-}" ]; then
|
||||||
|
echo "FIXED_TOKEN is not configured on runner"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
if ! response="$(curl --silent --show-error --location --get 'https://modelhub.org.cn/adminApi/image-verify/validate' \
|
if ! response="$(curl --silent --show-error --location --get 'https://modelhub.org.cn/adminApi/image-verify/validate' \
|
||||||
|
--header "Xc-Token: ${FIXED_TOKEN}" \
|
||||||
--data-urlencode "gpuType=${GPU_TYPE:-}" \
|
--data-urlencode "gpuType=${GPU_TYPE:-}" \
|
||||||
--data-urlencode "taskType=${TASK_TYPE:-}")"; then
|
--data-urlencode "taskType=${TASK_TYPE:-}")"; then
|
||||||
echo "failed to call image verify validate API"
|
echo "failed to call image verify validate API"
|
||||||
|
|||||||
Reference in New Issue
Block a user