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:
42
.gitea/workflows/deploy-nomad.yml
Normal file
42
.gitea/workflows/deploy-nomad.yml
Normal 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!"
|
||||
Reference in New Issue
Block a user