dev-custom-crontab #23

Merged
jblu merged 4 commits from dev-custom-crontab into main 2023-06-23 03:52:16 -05:00
2 changed files with 18 additions and 7 deletions
Showing only changes of commit b16875da29 - Show all commits

View File

@ -15,4 +15,18 @@ steps:
- latest - latest
when: when:
branch: branch:
- main - 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*

View File

@ -1,10 +1,7 @@
#!/bin/sh #!/bin/sh
CRON_CONFIG_FILE="/opt/crontab" CRON_CONFIG_FILE="/opt/crontab"
# CRON echo "${CRON} python /opt/crane.py" > $CRON_CONFIG_FILE
get_env CRON
CRON="${CRON:-"5 * * * *"}"
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}"