Skip to content

Commit e0e6f48

Browse files
committed
ci: cimplify
Signed-off-by: Peter Balogh <poke@riptides.io>
1 parent 4aa9af2 commit e0e6f48

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

.github/workflows/images-release.yml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
prepare-build:
1414
name: Prepare Build
1515
outputs:
16-
targets: ${{ steps.all-targets.outputs.targets }}
16+
target: ${{ steps.resolve.outputs.target }}
1717
image-tag: ${{ steps.resolve.outputs.version }}
1818
runs-on: ubuntu-latest
1919
steps:
@@ -48,26 +48,14 @@ jobs:
4848
echo "Target: $target"
4949
echo "Version: $version"
5050
51-
- name: List all targets
52-
id: all-targets
53-
uses: docker/bake-action/subaction/list-targets@v6
54-
with:
55-
target: ${{ steps.resolve.outputs.target }}
56-
continue-on-error: true
57-
5851
build-push:
59-
name: Build docker image - ${{ matrix.target }}
6052
needs: [prepare-build]
61-
if: ${{ needs.prepare-build.outputs.targets != '[]' && needs.prepare-build.outputs.targets != '' }}
62-
strategy:
63-
fail-fast: false
64-
matrix:
65-
target: ${{ fromJson(needs.prepare-build.outputs.targets) }}
53+
name: Build docker image ${{ needs.prepare-build.outputs.target }}
6654
uses: ./.github/workflows/reusable-docker-build-push.yml
6755
permissions:
6856
contents: 'read'
6957
packages: 'write'
7058
attestations: 'write'
7159
with:
72-
bake-targets: ${{ matrix.target }}
60+
bake-target: ${{ needs.prepare-build.outputs.target }}
7361
image-tag: ${{ needs.prepare-build.outputs.image-tag }}

0 commit comments

Comments
 (0)