35 lines
951 B
Bash
Executable File
35 lines
951 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Fristy Repository in Gitea erstellen
|
|
# Verwendung: ./scripts/create-gitea-repo.sh
|
|
|
|
GITEA_URL="http://192.168.1.142:3000"
|
|
GITEA_TOKEN="ec01d92db7f02dec1089cbb00076d9cbd533fd3f"
|
|
REPO_NAME="fristy"
|
|
REPO_DESCRIPTION="Modulare Vertrags-Management App für iOS und Android"
|
|
|
|
echo "📦 Erstelle Repository in Gitea..."
|
|
|
|
# Repository erstellen
|
|
curl -X POST "${GITEA_URL}/api/v1/user/repos" \
|
|
-H "Authorization: token ${GITEA_TOKEN}" \
|
|
-H "Content-Type: application/json" \
|
|
-d '{
|
|
"name": "'"${REPO_NAME}"'",
|
|
"description": "'"${REPO_DESCRIPTION}"'",
|
|
"private": false,
|
|
"auto_init": false,
|
|
"default_branch": "main",
|
|
"gitignores": "",
|
|
"license": "",
|
|
"readme": "Default"
|
|
}'
|
|
|
|
echo ""
|
|
echo "✅ Repository erstellt!"
|
|
echo "🔗 URL: ${GITEA_URL}/Firstly/${REPO_NAME}"
|
|
echo ""
|
|
echo "Nächste Schritte:"
|
|
echo "1. git remote set-url origin ${GITEA_URL}/Firstly/${REPO_NAME}.git"
|
|
echo "2. git push -u origin main"
|