Use drone cron for automatic crawl and build

This commit is contained in:
Felix Ableitner 2022-05-16 22:33:42 +02:00
parent 401d4b3ce8
commit d07bcd01fb
4 changed files with 15 additions and 1 deletions

View file

@ -29,6 +29,16 @@ steps:
commands:
- yarn build:dev
- name: run instance crawl
image: node:14-alpine
commands:
# libpq and openssl can probably be removed after lemmy dep is upgraded to 0.16.4+
- apk add cargo pkgconfig openssl openssl-dev libpq libpq-dev
- yarn crawl
when:
event:
- cron
- name: make release build and push to docker hub
image: plugins/docker
settings:

3
.gitmodules vendored
View file

@ -14,3 +14,6 @@
path = lemmy-js-client
url = https://github.com/LemmyNet/lemmy-js-client
branch = main
[submodule "lemmy-stats-crawler"]
path = lemmy-stats-crawler
url = https://yerbamate.ml/LemmyNet/lemmy-stats-crawler.git

View file

@ -21,7 +21,7 @@ try {
const run = spawn("cargo",
["run", "--", "--start-instances", all_recommended,
"--exclude-instances", recommended_instances.exclude], {
cwd: "../lemmy-stats-crawler",
cwd: "lemmy-stats-crawler",
encoding : 'utf8'
});
let savedOutput = '';

1
lemmy-stats-crawler Submodule

@ -0,0 +1 @@
Subproject commit d11febc7e80ae7ea37bd57f00163d71e4b48a918