Skip to content

Latest commit

 

History

History
54 lines (36 loc) · 1.08 KB

README.md

File metadata and controls

54 lines (36 loc) · 1.08 KB

Today I Commit Challenge

1일1커밋 챌린지를 위한 알림 봇

update

  • working based on python version: 3.9.0, OS X
  • will be send message to slack channel: #tic-bot-noti

Prerequisite

  • Can generate token here
  • Add token in env file and GITHUB_TOKEN in environment variable
source env

Execute

# (Optinoal) create venv

# install dependencies
pip install -r requirements.txt

# run bot
cd ticbot
python bot.py

Deployment

deploy with AWS Lambda

# set GITHUB_TOKEN to environment variable from .env
source .env

# build and push docker image to ECR
./build.sh

# Deploy new image to lambda in console
  • lambda function si triggerd by cloudwatch schedule with cron(0 14 * * ? *) (UTC)

References

TODO

  • move GITHUB_TOKEN into lambda function
  • edit slack message