Clean repository: organized structure and GitOps setup

- Organized root directory structure
- Moved orphan files to proper locations
- Updated .gitignore to ignore temporary files
- Set up Gitea Runner for GitOps automation
- Fixed Tailscale access issues
- Added workflow for automated Nomad deployment
This commit is contained in:
2025-10-09 06:13:45 +00:00
commit 89ee6f7967
306 changed files with 30781 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
name: Deploy Nomad Configurations
on:
push:
branches: [ main ]
paths:
- 'nomad-configs/**'
- 'deployment/ansible/**'
workflow_dispatch:
jobs:
deploy-nomad:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Deploy Nomad Server Configurations
run: |
echo "Deploying Nomad server configurations..."
cd nomad-configs
chmod +x scripts/deploy_servers.sh
./scripts/deploy_servers.sh
- name: Deploy Nomad Client Configurations
run: |
echo "Deploying Nomad client configurations..."
cd nomad-configs
chmod +x scripts/deploy.sh
./scripts/deploy.sh
- name: Run Ansible Playbooks
run: |
echo "Running Ansible playbooks..."
cd deployment/ansible
ansible-playbook -i inventories/production/inventory.ini playbooks/configure-nomad-unified.yml
- name: Verify Deployment
run: |
echo "Verifying Nomad cluster status..."
# Add verification steps here
echo "Deployment completed successfully!"