Skip to content

Commit

Permalink
Use bake to buidl
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorific committed Nov 14, 2023
1 parent 89d0bc0 commit 7af6581
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/zed-l4t35_3-humble-release-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,9 @@ jobs:
echo "test-platform=$($(git rev-parse --show-toplevel)/bin/list-platforms.sh | cut -d',' -f1)" >> $GITHUB_ENV
- name: Build locally for testing
uses: docker/build-push-action@v5
uses: docker/bake-action@v4
with:
load: true
context: stereolabs/zed/l4t35_3-humble-release
file: stereolabs/zed/l4t35_3-humble-release/Containerfile
tags: ${{ env.tags }}
platforms: ${{ env.test-platform }}
targets: ["local"]

- name: Run tests on the image with cinc-auditor
run: |
Expand All @@ -60,13 +56,9 @@ jobs:
password: ${{ secrets.CONTAINER_REGISTRY_PASSWORD }}

- name: Build and push
uses: docker/build-push-action@v5
uses: docker/bake-action@v4
with:
push: true
context: stereolabs/zed/l4t35_3-humble-release
file: stereolabs/zed/l4t35_3-humble-release/Containerfile
platforms: ${{ env.platforms }}
tags: ${{ env.tags }}
env:
BUILDKIT_PROGRESS: plain

Expand Down
8 changes: 7 additions & 1 deletion stereolabs/zed/l4t35_3-humble-release/docker-bake.hcl
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
target "local" {
tags = ["docker.io/polymathrobotics/zed:l4t35_3-humble-release"]
dockerfile = "Containerfile"
platforms = ["linux/arm64/v8"]
}

target "default" {
tags = ["docker.io/polymathrobotics/zed:l4t35_3-humble-release"]
dockerfile = "Containerfile"
platforms = ["linux/arm64"]
platforms = ["linux/arm64/v8"]
}

0 comments on commit 7af6581

Please sign in to comment.