Compare commits
No commits in common. "167575fe5d148232ae0c6bfeef8228040e98eca4" and "660a18a70f632a6bd5b92684a47fdf1e34c8a319" have entirely different histories.
167575fe5d
...
660a18a70f
15
.drone.yml
15
.drone.yml
@ -16,18 +16,3 @@ steps:
|
|||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- main
|
- main
|
||||||
steps:
|
|
||||||
- name: docker-test
|
|
||||||
image: plugins/docker
|
|
||||||
settings:
|
|
||||||
registry: git.jbranan.com
|
|
||||||
dry_run: false
|
|
||||||
username: jblu
|
|
||||||
password:
|
|
||||||
from_secret: gittea_drone
|
|
||||||
repo: git.jbranan.com/jblu/qbit-maid
|
|
||||||
tags:
|
|
||||||
- dev
|
|
||||||
when:
|
|
||||||
branch:
|
|
||||||
- dev*
|
|
@ -1,8 +1,8 @@
|
|||||||
FROM python:alpine3.18
|
FROM python:alpine3.18
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
COPY . opt
|
COPY . opt
|
||||||
RUN apk add --no-cache supercronic
|
|
||||||
RUN pip install requests
|
RUN pip install requests
|
||||||
RUN pip install qbittorrent-api
|
RUN pip install qbittorrent-api
|
||||||
|
RUN crontab /opt/crontab
|
||||||
RUN chmod +x /opt/entrypoint.sh
|
RUN chmod +x /opt/entrypoint.sh
|
||||||
CMD ["/opt/entrypoint.sh"]
|
CMD ["/opt/entrypoint.sh"]
|
1
crontab
Executable file
1
crontab
Executable file
@ -0,0 +1 @@
|
|||||||
|
0 1 * * * . /etc/environment; python /opt/qbit-maid.py >> /logfile
|
@ -1,7 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
CRON_CONFIG_FILE="/opt/crontab"
|
printenv | grep -v "no_proxy" >> /etc/environment
|
||||||
|
|
||||||
echo "${CRON} python /opt/qbit-maid.py" > $CRON_CONFIG_FILE
|
crond -f
|
||||||
|
|
||||||
exec supercronic -passthrough-logs -quiet $CRON_CONFIG_FILE
|
|
Loading…
x
Reference in New Issue
Block a user