Browse Source

ci: re-use local source to build binary images

Signed-off-by: Guillaume Lours <[email protected]>
Guillaume Lours 10 months ago
parent
commit
9be7a3c9a1
1 changed files with 5 additions and 2 deletions
  1. 5 2
      .github/workflows/merge.yml

+ 5 - 2
.github/workflows/merge.yml

@@ -79,6 +79,9 @@ jobs:
     outputs:
       digest: ${{ fromJSON(steps.bake.outputs.metadata).image-cross['containerimage.digest'] }}
     steps:
+      -
+        name: Checkout
+        uses: actions/checkout@v4
       -
         name: Login to DockerHub
         if: github.event_name != 'pull_request'
@@ -105,12 +108,12 @@ jobs:
           bake-target: meta-helper
       -
         name: Build and push image
-        uses: docker/bake-action@v5
+        uses: docker/bake-action@v6
         id: bake
         with:
+          source: .
           files: |
             ./docker-bake.hcl
-            cwd://${{ steps.meta.outputs.bake-file }}
           targets: image-cross
           push: ${{ github.event_name != 'pull_request' }}
           sbom: true