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: Install Ansible run: | sudo apt update sudo apt install -y ansible - name: Deploy Nomad Configurations run: | echo "Deploying Nomad configurations using Ansible..." cd deployment/ansible ansible-playbook -i inventories/production/inventory.ini playbooks/deploy-nomad-config.yml - name: Verify Deployment run: | echo "Verifying Nomad cluster status..." echo "Deployment completed successfully!"