Add ci/cd for bake

This commit is contained in:
Nick Mowen 2023-07-17 14:12:29 -06:00
parent 50b6b925a4
commit 410c1d3c83

View File

@ -54,27 +54,24 @@ jobs:
platforms: linux/amd64,linux/arm64 platforms: linux/amd64,linux/arm64
target: frigate target: frigate
tags: | tags: |
${{ env.BASE_IMAGE }} ghcr.io/${{ steps.lowercaseRepo.outputs.lowercase }}:${{ github.ref_name }}-${{ env.SHORT_SHA }}
cache-from: type=gha cache-from: type=gha
cache-to: type=gha,mode=max cache-to: type=gha,mode=max
- name: Build and push RPi build - name: Build and push RPi build
uses: docker/build-push-action@v4 uses: docker/bake-action@v3
with: with:
context: .
file: docker/build/rpi/Dockerfile
push: true push: true
platforms: linux/arm64 target: rpi
tags: | files: docker/rpi/bake.hcl
${{ env.BASE_IMAGE }}-rpi set: |
cache-from: type=gha rpi.tags=ghcr.io/${{ steps.lowercaseRepo.outputs.lowercase }}:${{ github.ref_name }}-${{ env.SHORT_SHA }}-rpi
rpi.cache-from=type=gha
- name: Build and push TensorRT - name: Build and push TensorRT
uses: docker/build-push-action@v4 uses: docker/build-push-action@v4
with: with:
context: .
file: docker/build/trt/Dockerfile
push: true push: true
platforms: linux/amd64 target: tensorrt
target: frigate-tensorrt files: docker/tensorrt/bake.hcl
tags: | set: |
${{ env.BASE_IMAGE }}-tensorrt tensorrt.tags=ghcr.io/${{ steps.lowercaseRepo.outputs.lowercase }}:${{ github.ref_name }}-${{ env.SHORT_SHA }}-tensorrt
cache-from: type=gha tensorrt.cache-from=type=gha