From b16875da2979abfa9d4fc626eaca837f7be00dcb Mon Sep 17 00:00:00 2001 From: Jonathan Branan Date: Fri, 23 Jun 2023 03:06:59 -0500 Subject: [PATCH] included supercronic --- .drone.yml | 16 +++++++++++++++- entrypoint.sh | 9 +++------ 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/.drone.yml b/.drone.yml index fe15c96..87d4e72 100644 --- a/.drone.yml +++ b/.drone.yml @@ -15,4 +15,18 @@ steps: - latest when: branch: - - main \ No newline at end of file + - 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* \ No newline at end of file diff --git a/entrypoint.sh b/entrypoint.sh index 2f8c173..4f59928 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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}" \ No newline at end of file +exec supercronic -passthrough-logs -quiet $CRON_CONFIG_FILE \ No newline at end of file