forked from TrueCloudLab/action-env
Rebuild all images if workflow triggered manually
Signed-off-by: Vitaliy Potyarkin <v.potyarkin@yadro.com>
This commit is contained in:
parent
22d46bfb6f
commit
e128ea6fdd
1 changed files with 9 additions and 5 deletions
|
@ -27,17 +27,21 @@ jobs:
|
||||||
|
|
||||||
- name: Install Buildah
|
- name: Install Buildah
|
||||||
run: apt update; apt install -y 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
|
- name: Build OCI image
|
||||||
run: make ${{matrix.tag}}
|
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
|
- name: Push image to OCI registry
|
||||||
run: make push-${{matrix.tag}}
|
run: make push-${{matrix.tag}}
|
||||||
if: >-
|
if: >-
|
||||||
steps.changed.outputs.any_changed == 'true'
|
github.ref == 'refs/heads/master' &&
|
||||||
&& github.ref == 'refs/heads/master'
|
(github.event_name == 'workflow_dispatch' ||
|
||||||
&& github.event_name == 'push'
|
(steps.changed.outputs.any_changed == 'true' && github.event_name == 'push'))
|
||||||
env:
|
env:
|
||||||
REGISTRY_PASSWORD: ${secrets.REGISTRY_PASSWORD}
|
REGISTRY_PASSWORD: ${secrets.REGISTRY_PASSWORD}
|
||||||
|
|
Loading…
Reference in a new issue