Compare commits

..

No commits in common. "master" and "v1.0.2" have entirely different histories.

9 changed files with 40 additions and 30 deletions

32
.github/workflows/main.yml vendored Normal file
View File

@ -0,0 +1,32 @@
name: Check
on:
schedule:
- cron: "0 * * * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Java
run: |
sudo apt update
sudo apt install default-jre
- name: Configure
run: |
cd recurring-execution-with-actions
echo "{ :min_score 600 :chat \"${{ secrets.TELEGRAM_CHAT }}\" :bot_token \"${{ secrets.TELEGRAM_BOT_TOKEN }}\" :run_every_miliseconds 3600000 }" > config.edn
- name: Run
run: |
cd recurring-execution-with-actions
java -jar isahn-1.0.1-standalone.jar
- name: Update database
run: |
cd recurring-execution-with-actions
./updateDB.sh

3
.gitignore vendored
View File

@ -11,5 +11,4 @@ pom.xml.asc
.hgignore
.hg/
config.edn
isahn_history.json
config.edn

View File

@ -1,14 +0,0 @@
FROM clojure:temurin-8-lein-bookworm-slim
# set work directory
WORKDIR /usr/src/app/isahn
# set time
RUN ln -fs /usr/share/zoneinfo/Europe/Madrid /etc/localtime
RUN dpkg-reconfigure -f noninteractive tzdata
# Install make
RUN apt update -y
RUN apt install -y make
Entrypoint ["lein", "run"]

View File

@ -1,8 +1,5 @@
.DEFAULT_GOAL := build
run:
while :; do lein run; sleep 1; done
build:
make check
lein codox

View File

@ -1,9 +0,0 @@
services:
isah:
restart: always
build:
context: .
dockerfile: Dockerfile
image: clojure:temurin-8-lein-bookworm-slim
volumes:
- .:/usr/src/app/

6
deploy/config.edn Normal file
View File

@ -0,0 +1,6 @@
{
:min_score 600
:chat "@important_stories_alert_hacknews"
:bot_token "bot918542948:AAGNfvZ3yqGkainRc-OFB44AYF7yYjY2TuM"
:run_every_miliseconds 3600000
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long