From 5e10f308a682f5f6ed86dcbb3937efc093688889 Mon Sep 17 00:00:00 2001 From: ange Date: Fri, 29 Nov 2024 04:35:24 +0000 Subject: [PATCH] fix: invalid image name --- .gitea/workflows/website.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitea/workflows/website.yaml b/.gitea/workflows/website.yaml index 0b235d8..0956dc7 100644 --- a/.gitea/workflows/website.yaml +++ b/.gitea/workflows/website.yaml @@ -19,8 +19,7 @@ jobs: REGISTRY="$(sed 's .*:// ' <<< ${{ gitea.server_url }})" cat <> .env BASE_URL="$BASE_URL" - REGISTRY="$REGISTRY" - IMAGEAPP="$REGISTRY/${{ gitea.repository }}:${{ gitea.ref_name }}" + IMAGEAPP="$REGISTRY/$(printf '%s' "${{ gitea.repository }}:${{ gitea.ref_name }}" | tr '[:upper:]' '[:lower:]' | tr -c '[:lower:][:digit:]-/:_' _)" EOF cat .env