commit 6d73d9365c044730f8f37474a1e16d4fb154f688 Author: Preston Hunter Date: Sat Dec 27 12:27:56 2025 -0500 Initial commit for Gitea Workflows diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml new file mode 100644 index 0000000..c0f8d8f --- /dev/null +++ b/.gitea/workflows/deploy.yaml @@ -0,0 +1,41 @@ +name: Deploy to Nomad +run-name: Deploy ${{ inputs.stack_name }} 🚀 + +on: + workflow_dispatch: + inputs: + stack_name: + description: 'Stack to deploy' + required: true + default: 'ai-backend' + type: choice + options: + - ai-backend + - ai-frontend + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Nomad + uses: hashicorp/setup-nomad@v3 + with: + version: '1.9.2' + + - name: Run Deploy + env: + NOMAD_ADDR: "http://192.168.1.133:4646" + run: | + echo "Deploying ${{ inputs.stack_name }}..." + + # --- AI STACK --- + if [ "${{ inputs.stack_name }}" == "ai-backend" ]; then + nomad job run stacks/ai/ai-backend.nomad + fi + + if [ "${{ inputs.stack_name }}" == "ai-frontend" ]; then + nomad job run stacks/ai/ai-frontend.nomad + fi \ No newline at end of file