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

1
.gitignore vendored
View File

@ -12,4 +12,3 @@ pom.xml.asc
.hg/ .hg/
config.edn config.edn
isahn_history.json

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 .DEFAULT_GOAL := build
run:
while :; do lein run; sleep 1; done
build: build:
make check make check
lein codox 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