Skip to content

Commit

Permalink
Trying to use ghcr
Browse files Browse the repository at this point in the history
  • Loading branch information
yusufk committed Aug 9, 2024
1 parent 3e9a66e commit 0ceba4c
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 6 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/ghcr-to-azure.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Trigger auto deployment for jarvis-reloaded

# When this action will be executed
on:
# Automatically trigger it when detected changes in repo
push:
branches:
[ main ]
paths:
- '**'
- '.github/workflows/jarvis-reloaded-AutoDeployTrigger-12a0dcc3-c25a-4622-8d8b-808b2c03e488.yml'

# Allow manual trigger
workflow_dispatch:

jobs:
build-and-deploy:
runs-on: ubuntu-latest
permissions:
id-token: write #This is required for requesting the OIDC JWT Token

steps:
- name: Checkout to the branch
uses: actions/checkout@v2

- name: Azure Login
uses: azure/login@v1
with:
client-id: ${{ secrets.JARVISRELOADED_AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.JARVISRELOADED_AZURE_TENANT_ID }}
subscription-id: ${{ secrets.JARVISRELOADED_AZURE_SUBSCRIPTION_ID }}

- name: Build and push container image to registry
uses: azure/container-apps-deploy-action@v2
with:
appSourcePath: ${{ github.workspace }}
registryUrl: ${{ env.REGISTRY }}
registryUsername: ${{ github.actor }}
registryPassword: ${{ secrets.GITHUB_TOKEN }}
containerAppName: jarvis-reloaded
resourceGroup: jarvis-rg
imageToBuild: yusufk.azurecr.io/jarvis-reloaded:${{ github.sha }}
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
Jarvis POC/Demo Telegram bot
===========================
This is a simple Telegram bot that can be used to demonstrate the capabilities of the Jarvis POC/Demo.
It is based on the [python-telegram-bot](http://python-telegram-bot.org/) library.
This Telegram bot is my personal AI Assistant, primarily built to explore LLM's and how they can be used to enable AI assistants.

There are multiple branches with different experiments, using various LLM models. The most interesting are the ones where I've attempted to give the AI assistant the ability to have an internal conversation and develop it's own train of thought. My personal view is that this is an important component of conciousness.

It is based on the [python-telegram-bot](http://python-telegram-bot.org/) library and is currently deployed on Azure using Azure Container App.

Installation
------------
To install the bot, you need to have Python 3.6 or higher installed on your system.
Then, you can install the required dependencies using poetry:
poetry install
`poetry install`

Usage
-----
To run the bot, you need to create a Telegram bot using the [BotFather](https://t.me/botfather).
Then, you need to create a file called `.env` in the root of the project directory.

reloaded
Store environment variables in `.env` in the root of the project directory.

0 comments on commit 0ceba4c

Please sign in to comment.