Hey guys
For some reason my Gitea Actions don’t trigger on schedule: cron.
My Gitea version is 1.21.4 which should support this. Runner are at v0.2.6.
on:
schedule:
- cron: '*/5 * * * *'
jobs:
backup:
runs-on: ubuntu-amd64
steps:
- run: echo "Hello vom Test :)"
With “on: [push]” it works as expected. Did I forget to enable some option/feature?
docker-compose.yaml
version: "3.8"
networks:
nginx-proxy:
external:
name: nginx-proxy
services:
gitea:
image: gitea/gitea:1
container_name: gitea-server
restart: always
volumes:
- /mnt/docker/gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
networks:
- nginx-proxy
expose:
- "3000"
environment:
- USER_UID=1000
- USER_GID=1000
- DISABLE_SSH=true
- ROOT_URL=https://gitea.........
- DOMAIN=gitea..........
- VIRTUAL_HOST=gitea..........
- VIRTUAL_PORT=3000
runner:
image: gitea/act_runner
container_name: gitea-runner
restart: always
depends_on:
- gitea
volumes:
- /mnt/docker/gitea/runner/config.yaml:/config.yaml
- /mnt/docker/gitea/runner/data:/data
- /var/run/docker.sock:/var/run/docker.sock
networks:
- nginx-proxy
environment:
CONFIG_FILE: /config.yaml
GITEA_INSTANCE_URL: "https://gitea.........."
GITEA_RUNNER_REGISTRATION_TOKEN: "........."
GITEA_RUNNER_NAME: "docker.........."
GITEA_RUNNER_LABELS: "ubuntu-amd64:docker://catthehacker/ubuntu:act-latest"