[#6] Allow choosing which image to rebuild manually
All checks were successful
/ build-dotnet-8.0 (push) Successful in 1m56s
/ build-oci-image-builder-bookworm (push) Successful in 1m56s
/ build-oci-runner (push) Successful in 1m57s
/ build-openjdk-11-maven-3.8.6 (push) Successful in 2m52s
/ build-python-3.11 (push) Successful in 3m25s
/ build-python-3.13 (push) Successful in 3m35s

Signed-off-by: Vitaliy Potyarkin <v.potyarkin@yadro.com>
This commit is contained in:
Vitaliy Potyarkin 2024-12-26 15:25:41 +03:00
parent 5c5a3a17bf
commit 6e50039ade

View file

@ -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}}