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
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Deploy Nomad Server Configurations
|
- name: Install Ansible
|
||||||
run: |
|
run: |
|
||||||
echo "Deploying Nomad server configurations..."
|
sudo apt update
|
||||||
cd nomad-configs
|
sudo apt install -y ansible
|
||||||
chmod +x scripts/deploy_servers.sh
|
|
||||||
./scripts/deploy_servers.sh
|
|
||||||
|
|
||||||
- name: Deploy Nomad Client Configurations
|
- name: Deploy Nomad Configurations
|
||||||
run: |
|
run: |
|
||||||
echo "Deploying Nomad client configurations..."
|
echo "Deploying Nomad configurations using Ansible..."
|
||||||
cd nomad-configs
|
|
||||||
chmod +x scripts/deploy.sh
|
|
||||||
./scripts/deploy.sh
|
|
||||||
|
|
||||||
- name: Run Ansible Playbooks
|
|
||||||
run: |
|
|
||||||
echo "Running Ansible playbooks..."
|
|
||||||
cd deployment/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
|
- name: Verify Deployment
|
||||||
run: |
|
run: |
|
||||||
echo "Verifying Nomad cluster status..."
|
echo "Verifying Nomad cluster status..."
|
||||||
# Add verification steps here
|
|
||||||
echo "Deployment completed successfully!"
|
echo "Deployment completed successfully!"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue