Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
6e50039ade [#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>
2024-12-26 15:30:40 +03:00

View file

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