Skip to content

Commit b6c6172

Browse files
committed
Tag latest every night to keep image up to date
Signed-off-by: gearnode <bryan@frimin.fr>
1 parent cf76b51 commit b6c6172

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/docker-build-push.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
pull_request:
88
branches: [main]
99
workflow_dispatch:
10+
schedule:
11+
- cron: "0 0 * * *"
1012

1113
env:
1214
REGISTRY: ghcr.io
@@ -49,7 +51,7 @@ jobs:
4951
type=semver,pattern={{major}}.{{minor}}
5052
type=semver,pattern={{major}}
5153
type=sha,format=long
52-
type=raw,value=latest,enable={{is_default_branch}}
54+
type=raw,value=latest,enable=${{ github.event_name == 'schedule' || github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
5355
5456
- name: Build and push Docker image
5557
uses: docker/build-push-action@v5

0 commit comments

Comments
 (0)