Explorar el Código

🛸 ci: final details in actions

metya hace 2 años
padre
commit
d55e470663
Se han modificado 3 ficheros con 5 adiciones y 7 borrados
  1. 2 3
      Dockerfile
  2. 1 2
      backup_db.sh
  3. 2 2
      papers.db

+ 2 - 3
Dockerfile

@@ -15,12 +15,11 @@ ADD requirements.txt /app
 RUN pip install --no-cache-dir -r requirements.txt
 RUN apk del .build-deps
 
-# RUN echo "0 0 * * 1 /bin/sh /app/backup_db.sh" >> /var/spool/cron/crontabs/root
-RUN echo "* * * * * /bin/sh /app/backup_db.sh" > /var/spool/cron/crontabs/root
+RUN echo "0 0 * * 1 /bin/sh /app/backup_db.sh" >> /var/spool/cron/crontabs/root
 
 RUN git config --global user.name "metya"
 RUN git config --global user.email "metya.tm@gmail.com"
 
 ADD . /app
 
-ENTRYPOINT crond -f -l 0 && python vanitybot.py
+ENTRYPOINT crond && python vanitybot.py

+ 1 - 2
backup_db.sh

@@ -1,5 +1,4 @@
-#!/usr/bin/expect
 cd /app
 git add papers.db
 git commit -m "backup papers.db" --no-verify
-./script.exp ${GITHUB_TOKEN}
+expect script.exp ${GITHUB_TOKEN}

+ 2 - 2
papers.db

@@ -1,3 +1,3 @@
 version https://git-lfs.github.com/spec/v1
-oid sha256:a2ff775d1e121e99b4fe7818ab2d860f501b8e67ab46532628b74a66733f6107
-size 106496
+oid sha256:ed42d25abd51465439938b7a8997049d1c68b8ded5997b45624a6bec2d2e20e6
+size 110592