remove cron and set builds on main branch to latest
MODIFY
.github/workflows/docker-image.yml
.github/workflows/docker-image.yml
name: Publish Docker image
on:
- schedule:
- - cron: '0 10 * * *' # everyday at 10am
push:
branches:
- '**'
@@ -53,6 +51,8 @@ jobs:
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}},enable=${{ !startsWith(github.ref, 'refs/tags/0.') }}
type=sha
+ flavor: |
+ latest=${{ github.ref == 'refs/heads/main' }}
- name: Build and push Docker image
uses: docker/build-push-action@v2.6.1

remove cron and set builds on main branch to latest