diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 329fd58..0e27a34 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -6,6 +6,8 @@ name: Create and publish a Docker image # documentation. on: + schedule: + - cron: "0 10 * * *" push: branches: [ "master" ] # Publish semver tags as releases. @@ -64,6 +66,14 @@ jobs: uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + tags: | + type=schedule + type=ref,event=branch + type=ref,event=pr + type=semver,pattern={{version}} + type=semver,pattern={{major}}.{{minor}} + type=semver,pattern={{major}} + type=sha # Build and push Docker image with Buildx (don't push on PR) # https://github.com/docker/build-push-action