Rebuild all images if workflow triggered manually

Signed-off-by: Vitaliy Potyarkin <v.potyarkin@yadro.com>
This commit is contained in:
Vitaliy Potyarkin 2024-10-24 17:32:35 +03:00
parent 22d46bfb6f
commit e128ea6fdd

View file

@ -27,17 +27,21 @@ jobs:
- name: Install Buildah
run: apt update; apt install -y buildah
if: steps.changed.outputs.any_changed == 'true'
if: >-
github.event_name == 'workflow_dispatch'
|| steps.changed.outputs.any_changed == 'true'
- name: Build OCI image
run: make ${{matrix.tag}}
if: steps.changed.outputs.any_changed == 'true'
if: >-
github.event_name == 'workflow_dispatch'
|| steps.changed.outputs.any_changed == 'true'
- name: Push image to OCI registry
run: make push-${{matrix.tag}}
if: >-
steps.changed.outputs.any_changed == 'true'
&& github.ref == 'refs/heads/master'
&& github.event_name == 'push'
github.ref == 'refs/heads/master' &&
(github.event_name == 'workflow_dispatch' ||
(steps.changed.outputs.any_changed == 'true' && github.event_name == 'push'))
env:
REGISTRY_PASSWORD: ${secrets.REGISTRY_PASSWORD}