Skip to content

Commit 760e223

Browse files
committed
feature(ci): Run docker build on all pushes
1 parent 80bbd6a commit 760e223

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/release-ghcr.yml

+7-3
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
@@ -52,6 +54,7 @@ jobs:
5254
echo "IMAGE_TAG=${IMAGE_TAG}" >> "$GITHUB_ENV"
5355
5456
- name: Upload ${{ github.actor }}/cardano-db-sync
57+
if: ${{ github.ref_type == 'tags' || github.event_name == 'release' }}
5558
run: |
5659
# Download the image from the nix binary cachhe
5760
nix build --builders "" --max-jobs 0 .#cardano-db-sync-docker
@@ -67,6 +70,7 @@ jobs:
6770
docker://ghcr.io/${REPO_OWNER}/cardano-db-sync:latest
6871
6972
- name: Upload ${{ github.actor }}/cardano-smash-server
73+
if: ${{ github.ref_type == 'tags' || github.event_name == 'release' }}
7074
run: |
7175
# Download the image from the nix binary cachhe
7276
nix build --builders "" --max-jobs 0 .#cardano-smash-server-docker

0 commit comments

Comments
 (0)