From 58f83a8523280cbc004f3730646d7c6d2ab623cc Mon Sep 17 00:00:00 2001 From: SBCrumb Date: Tue, 9 Sep 2025 14:57:58 -0400 Subject: [PATCH] install nodejs --- .gitea/workflows/ci.yml | 17 ++++++++++++++--- cleanup-github.sh | 33 +++++++++++++++++++++++++++++++++ remove_github_dir.sh | 3 +++ 3 files changed, 50 insertions(+), 3 deletions(-) create mode 100755 cleanup-github.sh create mode 100644 remove_github_dir.sh diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 0a8c4cb..0f21f77 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -13,11 +13,22 @@ jobs: steps: - name: Checkout code run: | - echo "Code already available in workspace" - pwd + echo "Current workspace: $(pwd)" + echo "Available files:" ls -la - echo "Checking for backend and frontend directories:" + + # Clone the repository since Gitea runner doesn't auto-checkout + echo "Cloning repository..." + git clone https://gitea.skalas.org/jskala/NFOguard.git /tmp/repo + cp -r /tmp/repo/* . + cp -r /tmp/repo/.* . 2>/dev/null || true + rm -rf /tmp/repo + + echo "After checkout:" + ls -la + echo "Backend directory:" ls -la backend/ 2>/dev/null || echo "backend directory not found" + echo "Frontend directory:" ls -la frontend/ 2>/dev/null || echo "frontend directory not found" - name: Check Node.js version diff --git a/cleanup-github.sh b/cleanup-github.sh new file mode 100755 index 0000000..f2db70a --- /dev/null +++ b/cleanup-github.sh @@ -0,0 +1,33 @@ +#!/bin/bash + +echo "Removing .github directory from repository..." + +# Check if .github directory exists +if [ -d ".github" ]; then + echo ".github directory found, removing it..." + git rm -rf .github/ + git commit -m "Remove GitHub workflows - migrated to Gitea" + echo ".github directory removed and committed" + echo "Don't forget to run: git push" +else + echo ".github directory not found in current directory" +fi + +# Check if it's already in .gitignore +if grep -q "^\.github/" .gitignore; then + echo ".github/ is already in .gitignore" +else + echo "Adding .github/ to .gitignore..." + echo "" >> .gitignore + echo "# Ignore GitHub workflows (using Gitea instead)" >> .gitignore + echo ".github/" >> .gitignore + git add .gitignore + git commit -m "Add .github/ to .gitignore" + echo "Added .github/ to .gitignore" +fi + +echo "" +echo "Next steps:" +echo "1. Run: git push" +echo "2. Make sure Node.js is installed on your Gitea runner host" +echo "3. Test your pipeline by making a small commit" \ No newline at end of file diff --git a/remove_github_dir.sh b/remove_github_dir.sh new file mode 100644 index 0000000..b8d50d4 --- /dev/null +++ b/remove_github_dir.sh @@ -0,0 +1,3 @@ +# Remove .github directory from repository +git rm -rf .github/ +echo ".github directory removed from repository" \ No newline at end of file