mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-18 00:54:27 +03:00
Change workflow file to build and push images in pr
This commit is contained in:
parent
af844ea9d5
commit
2c3371f5d0
64
.github/workflows/ci.yml
vendored
64
.github/workflows/ci.yml
vendored
@ -6,6 +6,10 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- dev
|
- dev
|
||||||
- master
|
- master
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- dev
|
||||||
|
- master
|
||||||
|
|
||||||
# only run the latest commit to avoid cache overwrites
|
# only run the latest commit to avoid cache overwrites
|
||||||
concurrency:
|
concurrency:
|
||||||
@ -37,6 +41,7 @@ jobs:
|
|||||||
target: frigate
|
target: frigate
|
||||||
tags: ${{ steps.setup.outputs.image-name }}-amd64
|
tags: ${{ steps.setup.outputs.image-name }}-amd64
|
||||||
cache-from: type=registry,ref=${{ steps.setup.outputs.cache-name }}-amd64
|
cache-from: type=registry,ref=${{ steps.setup.outputs.cache-name }}-amd64
|
||||||
|
|
||||||
arm64_build:
|
arm64_build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: ARM Build
|
name: ARM Build
|
||||||
@ -78,6 +83,7 @@ jobs:
|
|||||||
set: |
|
set: |
|
||||||
rk.tags=${{ steps.setup.outputs.image-name }}-rk
|
rk.tags=${{ steps.setup.outputs.image-name }}-rk
|
||||||
*.cache-from=type=gha
|
*.cache-from=type=gha
|
||||||
|
|
||||||
jetson_jp4_build:
|
jetson_jp4_build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: Jetson Jetpack 4
|
name: Jetson Jetpack 4
|
||||||
@ -104,6 +110,7 @@ jobs:
|
|||||||
tensorrt.tags=${{ steps.setup.outputs.image-name }}-tensorrt-jp4
|
tensorrt.tags=${{ steps.setup.outputs.image-name }}-tensorrt-jp4
|
||||||
*.cache-from=type=registry,ref=${{ steps.setup.outputs.cache-name }}-jp4
|
*.cache-from=type=registry,ref=${{ steps.setup.outputs.cache-name }}-jp4
|
||||||
*.cache-to=type=registry,ref=${{ steps.setup.outputs.cache-name }}-jp4,mode=max
|
*.cache-to=type=registry,ref=${{ steps.setup.outputs.cache-name }}-jp4,mode=max
|
||||||
|
|
||||||
jetson_jp5_build:
|
jetson_jp5_build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: Jetson Jetpack 5
|
name: Jetson Jetpack 5
|
||||||
@ -130,6 +137,7 @@ jobs:
|
|||||||
tensorrt.tags=${{ steps.setup.outputs.image-name }}-tensorrt-jp5
|
tensorrt.tags=${{ steps.setup.outputs.image-name }}-tensorrt-jp5
|
||||||
*.cache-from=type=registry,ref=${{ steps.setup.outputs.cache-name }}-jp5
|
*.cache-from=type=registry,ref=${{ steps.setup.outputs.cache-name }}-jp5
|
||||||
*.cache-to=type=registry,ref=${{ steps.setup.outputs.cache-name }}-jp5,mode=max
|
*.cache-to=type=registry,ref=${{ steps.setup.outputs.cache-name }}-jp5,mode=max
|
||||||
|
|
||||||
amd64_extra_builds:
|
amd64_extra_builds:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: AMD64 Extra Build
|
name: AMD64 Extra Build
|
||||||
@ -155,59 +163,7 @@ jobs:
|
|||||||
tensorrt.tags=${{ steps.setup.outputs.image-name }}-tensorrt
|
tensorrt.tags=${{ steps.setup.outputs.image-name }}-tensorrt
|
||||||
*.cache-from=type=registry,ref=${{ steps.setup.outputs.cache-name }}-amd64
|
*.cache-from=type=registry,ref=${{ steps.setup.outputs.cache-name }}-amd64
|
||||||
*.cache-to=type=registry,ref=${{ steps.setup.outputs.cache-name }}-amd64,mode=max
|
*.cache-to=type=registry,ref=${{ steps.setup.outputs.cache-name }}-amd64,mode=max
|
||||||
#- name: AMD/ROCm general build
|
|
||||||
# env:
|
|
||||||
# AMDGPU: gfx
|
|
||||||
# HSA_OVERRIDE: 0
|
|
||||||
# uses: docker/bake-action@v3
|
|
||||||
# with:
|
|
||||||
# push: true
|
|
||||||
# targets: rocm
|
|
||||||
# files: docker/rocm/rocm.hcl
|
|
||||||
# set: |
|
|
||||||
# rocm.tags=${{ steps.setup.outputs.image-name }}-rocm
|
|
||||||
# *.cache-from=type=gha
|
|
||||||
#- name: AMD/ROCm gfx900
|
|
||||||
# env:
|
|
||||||
# AMDGPU: gfx900
|
|
||||||
# HSA_OVERRIDE: 1
|
|
||||||
# HSA_OVERRIDE_GFX_VERSION: 9.0.0
|
|
||||||
# uses: docker/bake-action@v3
|
|
||||||
# with:
|
|
||||||
# push: true
|
|
||||||
# targets: rocm
|
|
||||||
# files: docker/rocm/rocm.hcl
|
|
||||||
# set: |
|
|
||||||
# rocm.tags=${{ steps.setup.outputs.image-name }}-rocm-gfx900
|
|
||||||
# *.cache-from=type=gha
|
|
||||||
#- name: AMD/ROCm gfx1030
|
|
||||||
# env:
|
|
||||||
# AMDGPU: gfx1030
|
|
||||||
# HSA_OVERRIDE: 1
|
|
||||||
# HSA_OVERRIDE_GFX_VERSION: 10.3.0
|
|
||||||
# uses: docker/bake-action@v3
|
|
||||||
# with:
|
|
||||||
# push: true
|
|
||||||
# targets: rocm
|
|
||||||
# files: docker/rocm/rocm.hcl
|
|
||||||
# set: |
|
|
||||||
# rocm.tags=${{ steps.setup.outputs.image-name }}-rocm-gfx1030
|
|
||||||
# *.cache-from=type=gha
|
|
||||||
#- name: AMD/ROCm gfx1100
|
|
||||||
# env:
|
|
||||||
# AMDGPU: gfx1100
|
|
||||||
# HSA_OVERRIDE: 1
|
|
||||||
# HSA_OVERRIDE_GFX_VERSION: 11.0.0
|
|
||||||
# uses: docker/bake-action@v3
|
|
||||||
# with:
|
|
||||||
# push: true
|
|
||||||
# targets: rocm
|
|
||||||
# files: docker/rocm/rocm.hcl
|
|
||||||
# set: |
|
|
||||||
# rocm.tags=${{ steps.setup.outputs.image-name }}-rocm-gfx1100
|
|
||||||
# *.cache-from=type=gha
|
|
||||||
# The majority of users running arm64 are rpi users, so the rpi
|
|
||||||
# build should be the primary arm64 image
|
|
||||||
assemble_default_build:
|
assemble_default_build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: Assemble and push default build
|
name: Assemble and push default build
|
||||||
@ -232,4 +188,4 @@ jobs:
|
|||||||
tags: ghcr.io/${{ steps.lowercaseRepo.outputs.lowercase }}:${{ env.SHORT_SHA }}
|
tags: ghcr.io/${{ steps.lowercaseRepo.outputs.lowercase }}:${{ env.SHORT_SHA }}
|
||||||
sources: |
|
sources: |
|
||||||
ghcr.io/${{ steps.lowercaseRepo.outputs.lowercase }}:${{ env.SHORT_SHA }}-amd64
|
ghcr.io/${{ steps.lowercaseRepo.outputs.lowercase }}:${{ env.SHORT_SHA }}-amd64
|
||||||
ghcr.io/${{ steps.lowercaseRepo.outputs.lowercase }}:${{ env.SHORT_SHA }}-rpi
|
ghcr.io/${{ steps.lowercaseRepo.outputs.lowercase }}:${{ env.SHORT_SHA }}-rpi
|
||||||
Loading…
Reference in New Issue
Block a user