Hi,
Thanks for the help so far guys. I’m stuck at another one.
I’ve set up a cron job named ‘daily’ using drone cli say with cron expression: “0 30 13 * * ?” in GMT timezone. This cron is under repository/my-project. I’ve specified the trigger in the my-project under trigger entry in .drone.yml.
But the trigger does not kick at the specified time. Any idea of what could be wrong?
If I remove the cron trigger from .drone.yml immediate push kicks off the build.
kind: pipeline
name: defaultplatform:
os: linux
arch: amd64clone:
disable: truesteps:
name: clone
image: docker:git
commands:
- chmod 600 $HOME/.netrc
- wget https://raw.githubusercontent.com/git/git/e67fbf927dfdf13d0b21dc6ea15dc3c7ef448ea0/contrib/credential/netrc/git-credential-netrc.perl
- git clone https://bitbucket.org/xx/xx
- git -C ./xx fetch && git -C ./xx checkout ${DRONE_BRANCH}
name: publish
image: plugins/ecr
settings:
dockerfile: xx/Dockerfile
region: us-west-2
registry: xxxx.dkr.ecr.us-west-2.amazonaws.com
repo: xxx.dkr.ecr.us-west-2.amazonaws.com/yy
tags:
- ${DRONE_BRANCH}
environment:
AWS_ACCESS_KEY_ID:
from_secret: aws_access_key_id
AWS_SECRET_ACCESS_KEY:
from_secret: aws_secret_access_key
privileged: true
volumes:- name: docker_socket
path: /var/run/docker.sockvolumes:
- name: docker_socket
host:
path: /var/run/docker.socktrigger:
event:
- cron
cron:- daily
…