Skip to content

Commit 0776e67

Browse files
committed
feature(ci): Run docker build on all pushes
1 parent 77cd794 commit 0776e67

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/release-ghcr.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ on:
44
release:
55
types:
66
- published
7-
push:
8-
tags:
9-
- '**'
7+
push: {}
8+
pull_request: {}
109
workflow_dispatch: {}
10+
schedule:
11+
# Everyday at 4:00 AM UTC
12+
- cron: "0 4 * * *"
1113

1214
env:
1315
REGISTRY: ghcr.io
@@ -46,6 +48,7 @@ jobs:
4648
password: ${{ secrets.GITHUB_TOKEN }}
4749

4850
- name: Upload to ghcr.io
51+
if: ${{ github.ref_type == 'tags' || github.event_name == 'release' }}
4952
run: |
5053
# Downcase the package repository, because docker reference
5154
# are required to be lower case

0 commit comments

Comments
 (0)