commit b88ec031db8b4f76c30d059fb1264c02a8899414 Author: Hezi Aharon Date: Mon Mar 3 15:41:32 2025 +0000 Add .gitea/workflows/deploy.yaml diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml new file mode 100644 index 0000000..478708d --- /dev/null +++ b/.gitea/workflows/deploy.yaml @@ -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 \ No newline at end of file