From 6e50039adea3b08d2b1ee3183eb44ff4e9ba1db6 Mon Sep 17 00:00:00 2001 From: Vitaliy Potyarkin Date: Thu, 26 Dec 2024 15:25:41 +0300 Subject: [PATCH] [#6] Allow choosing which image to rebuild manually Signed-off-by: Vitaliy Potyarkin --- .forgejo/workflows/build.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index 2b13330f7..c3adc98ec 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -2,6 +2,12 @@ on: push: pull_request: workflow_dispatch: + inputs: + image: + description: Which image to build + default: none + required: false + type: string jobs: build: @@ -38,7 +44,7 @@ jobs: run: make push-${{matrix.tag}} if: >- github.ref == 'refs/heads/master' && - (github.event_name == 'workflow_dispatch' || + ((github.event_name == 'workflow_dispatch' && github.event.inputs.image == matrix.tag) || (steps.changed.outputs.any_changed == 'true' && github.event_name == 'push')) env: REGISTRY_PASSWORD: ${{secrets.FORGEJO_OCI_REGISTRY_PUSH_TOKEN}}