Compare commits
No commits in common. "master" and "v1.0.2" have entirely different histories.
32
.github/workflows/main.yml
vendored
Normal file
32
.github/workflows/main.yml
vendored
Normal 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
3
.gitignore
vendored
@ -11,5 +11,4 @@ pom.xml.asc
|
|||||||
.hgignore
|
.hgignore
|
||||||
.hg/
|
.hg/
|
||||||
|
|
||||||
config.edn
|
config.edn
|
||||||
isahn_history.json
|
|
14
Dockerfile
14
Dockerfile
@ -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"]
|
|
3
Makefile
3
Makefile
@ -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
|
||||||
|
@ -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
6
deploy/config.edn
Normal 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
BIN
recurring-execution-with-actions/isahn-1.0.1-standalone.jar
Normal file
BIN
recurring-execution-with-actions/isahn-1.0.1-standalone.jar
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user