File tree Expand file tree Collapse file tree 1 file changed +3
-15
lines changed Expand file tree Collapse file tree 1 file changed +3
-15
lines changed Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments