This commit is contained in:
parent
b4d92128df
commit
b16875da29
14
.drone.yml
14
.drone.yml
@ -16,3 +16,17 @@ steps:
|
||||
when:
|
||||
branch:
|
||||
- main
|
||||
- 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/crane
|
||||
tags:
|
||||
- dev
|
||||
when:
|
||||
branch:
|
||||
- dev*
|
@ -1,10 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
CRON_CONFIG_FILE="/opt/crontab"
|
||||
|
||||
# CRON
|
||||
get_env CRON
|
||||
CRON="${CRON:-"5 * * * *"}"
|
||||
echo "${CRON} python /opt/crane.py" > $CRON_CONFIG_FILE
|
||||
|
||||
echo "${CRON} python /opt/crane.py" >> "${CRON_CONFIG_FILE}"
|
||||
|
||||
exec supercronic -passthrough-logs -quiet "${CRON_CONFIG_FILE}"
|
||||
exec supercronic -passthrough-logs -quiet $CRON_CONFIG_FILE
|
Loading…
x
Reference in New Issue
Block a user