From 4c1b8e1767cd9a295754958c209d9c9c46eaa5f1 Mon Sep 17 00:00:00 2001 From: ange Date: Fri, 29 Nov 2024 06:17:06 +0000 Subject: [PATCH] fix: invalid BASE_URL --- .gitea/workflows/website.yaml | 2 +- website/html/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/website.yaml b/.gitea/workflows/website.yaml index e920d0a..56d3687 100644 --- a/.gitea/workflows/website.yaml +++ b/.gitea/workflows/website.yaml @@ -21,7 +21,7 @@ jobs: fi REGISTRY="$(sed 's .*:// ' <<< ${{ gitea.server_url }})" cat <> .env - BASE_URL="$BASE_URL" + BASE_URL="$(printf '%s' "$BASE_URL" | tr '[:upper:]' '[:lower:]' | tr -c '[:lower:][:digit:]-.' -)" IMAGEAPP="$REGISTRY/$(printf '%s' "${{ gitea.repository }}:${{ gitea.ref_name }}" | tr '[:upper:]' '[:lower:]' | tr -c '[:lower:][:digit:]-/:_' _)" EOF cat .env diff --git a/website/html/index.html b/website/html/index.html index fe9a343..5da1c74 100644 --- a/website/html/index.html +++ b/website/html/index.html @@ -7,6 +7,6 @@ Icing logo -

Hello, World!

+

Hello, World