Skip to content

Commit a3d86a0

Browse files
committed
distribute: rename workflow and check target
Signed-off-by: CrazyMax <[email protected]>
1 parent 3f088f6 commit a3d86a0

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -735,15 +735,15 @@ jobs:
735735
targets: app-entitlements
736736

737737
distribute:
738-
uses: ./.github/workflows/reusable-distribute.yml
738+
uses: ./.github/workflows/reusable-distribute-mp.yml
739739
with:
740740
target: app-plus
741741
push: false
742742
meta-image: user/app
743743
bake-files: ./test/config.hcl
744744

745745
distribute-cache:
746-
uses: ./.github/workflows/reusable-distribute.yml
746+
uses: ./.github/workflows/reusable-distribute-mp.yml
747747
with:
748748
target: image-all
749749
push: false

.github/workflows/reusable-distribute.yml renamed to .github/workflows/reusable-distribute-mp.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Reusable workflow to distribute multi-platform builds efficiently
22
# https://docs.docker.com/build/ci/github-actions/multi-platform/#distribute-build-across-multiple-runners
3-
name: reusable-distribute
3+
name: reusable-distribute-mp
44

55
on:
66
workflow_call:
@@ -211,6 +211,9 @@ jobs:
211211
if (Util.getInputList('meta-image').length > 1) {
212212
throw new Error('Only one meta-image is allowed');
213213
}
214+
if (Util.getInputList('target').length > 1) {
215+
throw new Error('Only one target is allowed');
216+
}
214217
215218
const inpRunner = core.getInput('runner');
216219
const inpTarget = core.getInput('target');

0 commit comments

Comments
 (0)