From 0276202f35c5fc3041ff1f1413756b7842b75f2e Mon Sep 17 00:00:00 2001 From: Earlopain <14981592+Earlopain@users.noreply.github.com> Date: Sun, 3 Nov 2024 17:04:41 +0100 Subject: [PATCH] Allow to not push for manually triggered runs --- .github/workflows/nightly.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 9d4bc53..493f8ee 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -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 * * * @@ -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") \