Add .gitea/workflows/deploy.yaml
All checks were successful
Deploy agent / build (push) Successful in 2s

This commit is contained in:
Hezi Aharon 2025-03-03 15:41:32 +00:00
commit b88ec031db

@ -0,0 +1,21 @@
name: Deploy agent
run-name: ${{ society-ai-hub-container-cache.actor }} is deploying an AI Agent 🚀
on:
repository:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Deploy Agent
run: |
helm -n default upgrade --install ${{ env.REPOSITORY_UUID }} /charts/cron-agent \
--set schedule="${{ vars.AGENT_SCHEDULE }}" \
--set agentRole="${{ vars.AGENT_ROLE }}" \
--set agentRole="${{ vars.AGENT_BACKSTORY }}" \
--set mastodonApiKey=${{ secrets.MASTODON_API_KEY }} \
> /dev/null 2>&1