remove deprecated CI/CD workflows from Gitea and GitHub

This commit is contained in:
Ali Taghavi
2026-05-19 00:17:50 +03:30
parent 66b713a300
commit 548c08eb9d
2 changed files with 0 additions and 104 deletions

View File

@@ -1,51 +0,0 @@
name: CI/CD Pipeline
on:
push:
branches:
- main
jobs:
lint:
name: Lint & Typecheck
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install pnpm
run: npm install -g pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile --ignore-scripts
- name: Run lint
run: pnpm lint
- name: Run typecheck
run: pnpm typecheck
deploy:
name: Deploy to Server
runs-on: ubuntu-latest
needs: lint
steps:
- name: Deploy via SSH
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SERVER_SSH_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan -H ${{ secrets.SERVER_HOST }} >> ~/.ssh/known_hosts 2>/dev/null
ssh -o StrictHostKeyChecking=no ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_HOST }} '
set -e
APP_DIR="/srv/nodecloud/apps/biztaghavisite"
cd "$APP_DIR"
echo "⬇️ Pulling latest code..."
git pull origin main
echo "🐳 Building Docker image..."
docker compose build
echo "🚀 Restarting container..."
docker compose up -d --force-recreate
docker image prune -f
echo "✅ Deploy complete!"
'

View File

@@ -1,53 +0,0 @@
name: CI/CD Pipeline
on:
push:
branches: [main]
jobs:
lint-typecheck:
name: Lint & Type Check
runs-on: nodecloud-runner
container:
image: node:20-bullseye
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ github.token }}
repository: ${{ github.repository }}
- name: Enable pnpm
run: corepack enable && corepack prepare pnpm@latest --activate
- name: Install dependencies
run: pnpm install --frozen-lockfile --ignore-scripts
- name: Lint
run: pnpm lint
- name: Type check
run: pnpm typecheck
deploy:
name: Deploy to NODE Cloud
runs-on: nodecloud-runner
needs: lint-typecheck
if: success()
steps:
- name: Deploy via SSH
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SERVER_SSH_KEY }}" > ~/.ssh/deploy_key
chmod 600 ~/.ssh/deploy_key
ssh -i ~/.ssh/deploy_key \
-o StrictHostKeyChecking=no \
-o UserKnownHostsFile=/dev/null \
${{ secrets.SERVER_USER }}@${{ secrets.SERVER_HOST }} \
"cd /srv/nodecloud/apps/biztaghavisite && \
git pull && \
docker compose build --no-cache && \
docker compose up -d --force-recreate && \
echo '✅ Deploy done'"