Fix: Use proper Gitea Runner workflow
- Remove hand-crafted Python webhook server - Use standard Gitea Actions workflow - Deploy via Ansible playbook - Mature GitOps solution
This commit is contained in:
parent
3171612897
commit
d12d1dc690
|
|
@ -15,28 +15,18 @@ jobs:
|
|||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Deploy Nomad Server Configurations
|
||||
- name: Install Ansible
|
||||
run: |
|
||||
echo "Deploying Nomad server configurations..."
|
||||
cd nomad-configs
|
||||
chmod +x scripts/deploy_servers.sh
|
||||
./scripts/deploy_servers.sh
|
||||
sudo apt update
|
||||
sudo apt install -y ansible
|
||||
|
||||
- name: Deploy Nomad Client Configurations
|
||||
- name: Deploy Nomad 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..."
|
||||
echo "Deploying Nomad configurations using Ansible..."
|
||||
cd deployment/ansible
|
||||
ansible-playbook -i inventories/production/inventory.ini playbooks/configure-nomad-unified.yml
|
||||
ansible-playbook -i inventories/production/inventory.ini playbooks/deploy-nomad-config.yml
|
||||
|
||||
- name: Verify Deployment
|
||||
run: |
|
||||
echo "Verifying Nomad cluster status..."
|
||||
# Add verification steps here
|
||||
echo "Deployment completed successfully!"
|
||||
|
|
|
|||
Loading…
Reference in New Issue