fix: invalid image name

This commit is contained in:
ange 2024-11-29 04:35:24 +00:00 committed by stcb
parent eff830f1db
commit 5e10f308a6

View File

@ -19,8 +19,7 @@ jobs:
REGISTRY="$(sed 's .*:// ' <<< ${{ gitea.server_url }})" REGISTRY="$(sed 's .*:// ' <<< ${{ gitea.server_url }})"
cat <<EOF >> .env cat <<EOF >> .env
BASE_URL="$BASE_URL" BASE_URL="$BASE_URL"
REGISTRY="$REGISTRY" IMAGEAPP="$REGISTRY/$(printf '%s' "${{ gitea.repository }}:${{ gitea.ref_name }}" | tr '[:upper:]' '[:lower:]' | tr -c '[:lower:][:digit:]-/:_' _)"
IMAGEAPP="$REGISTRY/${{ gitea.repository }}:${{ gitea.ref_name }}"
EOF EOF
cat .env cat .env