fix: invalid image name

This commit is contained in:
ange 2024-11-29 04:35:24 +00:00
parent 5add7f536f
commit 1fc19ffcaf
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D

View File

@ -19,8 +19,7 @@ jobs:
REGISTRY="$(sed 's .*:// ' <<< ${{ gitea.server_url }})"
cat <<EOF >> .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