From ec359e130c202906cc1f761384ae0ce3100712c9 Mon Sep 17 00:00:00 2001 From: Dr John Vidler Date: Mon, 21 Aug 2023 14:31:01 +0100 Subject: [PATCH] Update publish.yml Set a cron schedule to run nightly --- .github/workflows/publish.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 31012a6..e9162be 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,6 +1,9 @@ name: Create and publish a Docker image -on: [push] +on: + push: + schedule: + - cron: "0 0 * * *" # Defines two custom environment variables for the workflow. # These are used for the Container registry domain, and a name for the Docker image that this workflow builds. @@ -53,4 +56,4 @@ jobs: context: . push: true tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file + labels: ${{ steps.meta.outputs.labels }}