[#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
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:
parent
5c5a3a17bf
commit
6e50039ade
1 changed files with 7 additions and 1 deletions
|
@ -2,6 +2,12 @@ on:
|
||||||
push:
|
push:
|
||||||
pull_request:
|
pull_request:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
image:
|
||||||
|
description: Which image to build
|
||||||
|
default: none
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -38,7 +44,7 @@ jobs:
|
||||||
run: make push-${{matrix.tag}}
|
run: make push-${{matrix.tag}}
|
||||||
if: >-
|
if: >-
|
||||||
github.ref == 'refs/heads/master' &&
|
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'))
|
(steps.changed.outputs.any_changed == 'true' && github.event_name == 'push'))
|
||||||
env:
|
env:
|
||||||
REGISTRY_PASSWORD: ${{secrets.FORGEJO_OCI_REGISTRY_PUSH_TOKEN}}
|
REGISTRY_PASSWORD: ${{secrets.FORGEJO_OCI_REGISTRY_PUSH_TOKEN}}
|
||||||
|
|
Loading…
Add table
Reference in a new issue