From 11730a8ad031a18b031df81e997543d0511c856f Mon Sep 17 00:00:00 2001 From: Aditya Pulipaka Date: Mon, 6 Apr 2026 23:44:17 +0000 Subject: [PATCH] remove old --- .onedev-buildspec.yml | 53 ------------------------------------------- 1 file changed, 53 deletions(-) delete mode 100644 .onedev-buildspec.yml diff --git a/.onedev-buildspec.yml b/.onedev-buildspec.yml deleted file mode 100644 index 6a87174..0000000 --- a/.onedev-buildspec.yml +++ /dev/null @@ -1,53 +0,0 @@ -version: 46 -jobs: -- name: Deploy - steps: - - type: CommandStep - name: Deploy - runInContainer: true - image: ubuntu:latest - interpreter: - type: DefaultInterpreter - commands: | - # 1. Install SSH client and IP routing tools - apt-get update && apt-get install -y openssh-client iproute2 - - # 2. Setup the SSH key from OneDev secrets - mkdir -p ~/.ssh - echo "@secret:DEPLOY_SSH_KEY@" > ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa - echo "StrictHostKeyChecking no" > ~/.ssh/config - - # 3. Dynamically find the Host machine's IP address - HOST_IP=$(ip route | awk '/default/ { print $3 }') - echo "==> Detected Host IP: $HOST_IP" - - # 4. SSH into the host machine to execute the deployment - ssh adipu@@$HOST_IP << 'EOF' - set -e - echo "==> Navigating to project directory..." - cd ~/LabWise - - echo "==> Pulling latest code..." - git pull onedev main - - echo "==> Running Test Build..." - docker compose build - - echo "==> Build successful! Deploying new containers..." - docker compose up -d - - echo "==> Deployment Complete!" - EOF - useTTY: true - condition: SUCCESSFUL - optional: false - triggers: - - type: BranchUpdateTrigger - branches: main - userMatch: anyone - projects: LabWise - retryCondition: never - maxRetries: 3 - retryDelay: 30 - timeout: 14400