feat: schedule nightly rebuild at 02:00 UTC

Rebuilds the default branch from scratch every night.  This ensures that the latest security patches are available for testers.

PR: #66
This commit is contained in:
innovaker 2021-06-09 20:19:49 +01:00
parent 2a830a7633
commit 56e01d70cb

View File

@ -3,7 +3,7 @@ name: Containers
env: env:
zephyr-version: 2.4.0 zephyr-version: 2.4.0
zephyr-sdk-version: 0.11.4 zephyr-sdk-version: 0.11.4
no-cache: ${{ github.event_name == 'workflow_dispatch' }} no-cache: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' }}
run-unit-tests: ${{ secrets.RUN_UNIT_TESTS != null }} run-unit-tests: ${{ secrets.RUN_UNIT_TESTS != null }}
docker-hub-credentials: ${{ secrets.DOCKER_HUB_USERNAME != null && secrets.DOCKER_HUB_TOKEN != null }} docker-hub-credentials: ${{ secrets.DOCKER_HUB_USERNAME != null && secrets.DOCKER_HUB_TOKEN != null }}
ghcr-credentials: ${{ secrets.GHCR_USERNAME != null && secrets.GHCR_TOKEN != null }} ghcr-credentials: ${{ secrets.GHCR_USERNAME != null && secrets.GHCR_TOKEN != null }}
@ -17,6 +17,8 @@ on:
push: push:
pull_request: pull_request:
workflow_dispatch: workflow_dispatch:
schedule:
- cron: '0 2 * * *' # every day at 02:00 UTC
concurrency: ${{ github.ref }}/${{ github.workflow }} concurrency: ${{ github.ref }}/${{ github.workflow }}