added ci runner token to env
This commit is contained in:
@@ -20,6 +20,8 @@ jobs:
|
||||
echo "${{ secrets.CI_RUNNER_TOKEN }}" | docker login 10.0.0.2:3000 --username "${{ gitea.actor }}" --password-stdin
|
||||
- name: Check MLflow-full base image digest
|
||||
id: mlflow-full
|
||||
env:
|
||||
CI_RUNNER_TOKEN: ${{ secrets.CI_RUNNER_TOKEN }}
|
||||
run: |
|
||||
MANIFEST=$(docker manifest inspect "gitea.gt-proj.com/brian/mlflow-full:latest" 2>/dev/null || echo "{}")
|
||||
if [ "$MANIFEST" == "{}" ]; then
|
||||
@@ -36,7 +38,7 @@ jobs:
|
||||
fi
|
||||
# Get the manifest for the specific platform
|
||||
PLATFORM_MANIFEST=$(curl -s -H "Accept: application/vnd.docker.distribution.manifest.v2+json" \
|
||||
-H "Authorization: Bearer ${{ secrets.CI_RUNNER_TOKEN }}" \
|
||||
-H "Authorization: Bearer $CI_RUNNER_TOKEN" \
|
||||
"https://gitea.gt-proj.com/v2/brian/mlflow-full/manifests/$DIGEST" 2>/dev/null || echo "{}")
|
||||
if [ "$PLATFORM_MANIFEST" == "{}" ]; then
|
||||
echo "digest_found=false" >> $GITHUB_OUTPUT
|
||||
|
||||
Reference in New Issue
Block a user