Skip to content

Commit c39837d

Browse files
committed
fix: Use anchor
1 parent 858f32d commit c39837d

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

.github/workflows/reusable_docker_build_multiarch.yaml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ jobs:
454454

455455
# Misc
456456
- name: Upload build metadata
457-
if: >-
457+
if: &push_enabled >-
458458
${{
459459
inputs.aws_push
460460
|| inputs.dockerhub_push
@@ -473,13 +473,7 @@ jobs:
473473
name: Push multi-arch docker manifest
474474
runs-on: ubuntu-latest
475475
needs: [docker_build_push]
476-
if: >-
477-
${{
478-
inputs.aws_push
479-
|| inputs.dockerhub_push
480-
|| inputs.gcp_push
481-
|| inputs.ghcr_push
482-
}}
476+
if: *push_enabled
483477
strategy:
484478
matrix:
485479
target: ${{ fromJson(inputs.targets) }}

0 commit comments

Comments
 (0)