mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-05 18:55:23 +03:00
Add ci/cd for bake
This commit is contained in:
parent
7cab60d267
commit
59d2ba8a4a
27
.github/workflows/ci.yml
vendored
27
.github/workflows/ci.yml
vendored
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user