Skip to content

Commit

Permalink
Allow to not push for manually triggered runs
Browse files Browse the repository at this point in the history
  • Loading branch information
Earlopain committed Nov 3, 2024
1 parent c1410de commit 0276202
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ name: Docker Build

on:
workflow_dispatch:
inputs:
push:
type: boolean
default: false
description: Push the images after build
schedule:
- cron: 0 20 * * *

Expand Down Expand Up @@ -135,6 +140,7 @@ jobs:
password: ${{ github.token }}

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

0 comments on commit 0276202

Please sign in to comment.