Skip to content

Commit 0276202

Browse files
committed
Allow to not push for manually triggered runs
1 parent c1410de commit 0276202

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/nightly.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: Docker Build
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
push:
7+
type: boolean
8+
default: false
9+
description: Push the images after build
510
schedule:
611
- cron: 0 20 * * *
712

@@ -135,6 +140,7 @@ jobs:
135140
password: ${{ github.token }}
136141

137142
- name: Create manifest list and push
143+
if: github.event_name == 'schedule' || inputs.push == true
138144
working-directory: /tmp/digests
139145
run: |
140146
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \

0 commit comments

Comments
 (0)