mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-09 04:35:25 +03:00
moved to shared setup and cleanup
This commit is contained in:
parent
f6aa10477c
commit
be30a85bae
17
.github/actions/setup/action.yml
vendored
17
.github/actions/setup/action.yml
vendored
@ -11,6 +11,23 @@ outputs:
|
|||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
|
# Stop docker so we can mount more space at /var/lib/docker
|
||||||
|
- name: Stop docker
|
||||||
|
run: sudo systemctl stop docker
|
||||||
|
shell: bash
|
||||||
|
# This creates a virtual volume at /var/lib/docker to maximize the size
|
||||||
|
# As of 2/14/2024, this results in 97G for docker images
|
||||||
|
- name: Maximize build space
|
||||||
|
uses: easimon/maximize-build-space@master
|
||||||
|
with:
|
||||||
|
remove-dotnet: 'true'
|
||||||
|
remove-android: 'true'
|
||||||
|
remove-haskell: 'true'
|
||||||
|
remove-codeql: 'true'
|
||||||
|
build-mount-path: '/var/lib/docker'
|
||||||
|
- name: Start docker
|
||||||
|
run: sudo systemctl start docker
|
||||||
|
shell: bash
|
||||||
- id: lowercaseRepo
|
- id: lowercaseRepo
|
||||||
uses: ASzc/change-string-case-action@v5
|
uses: ASzc/change-string-case-action@v5
|
||||||
with:
|
with:
|
||||||
|
|||||||
46
.github/workflows/ci.yml
vendored
46
.github/workflows/ci.yml
vendored
@ -21,22 +21,6 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: AMD64 Build
|
name: AMD64 Build
|
||||||
steps:
|
steps:
|
||||||
- name: Show disk info
|
|
||||||
run: df -h
|
|
||||||
- name: Stop docker
|
|
||||||
run: sudo systemctl stop docker
|
|
||||||
- name: Maximize build space
|
|
||||||
uses: easimon/maximize-build-space@master
|
|
||||||
with:
|
|
||||||
# root-reserve-mb: 512
|
|
||||||
# swap-size-mb: 1024
|
|
||||||
remove-dotnet: 'true'
|
|
||||||
remove-android: 'true'
|
|
||||||
remove-haskell: 'true'
|
|
||||||
remove-codeql: 'true'
|
|
||||||
build-mount-path: '/var/lib/docker'
|
|
||||||
- name: Start docker
|
|
||||||
run: sudo systemctl start docker
|
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Set up QEMU and Buildx
|
- name: Set up QEMU and Buildx
|
||||||
@ -44,8 +28,6 @@ jobs:
|
|||||||
uses: ./.github/actions/setup
|
uses: ./.github/actions/setup
|
||||||
with:
|
with:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Show disk info
|
|
||||||
run: df -h
|
|
||||||
- name: Build and push amd64 standard build
|
- name: Build and push amd64 standard build
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
@ -56,10 +38,6 @@ 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
|
||||||
- name: Show disk info
|
|
||||||
run: df -h
|
|
||||||
- name: Show docker image info
|
|
||||||
run: docker image ls --all
|
|
||||||
- name: Build and push TensorRT (x86 GPU)
|
- name: Build and push TensorRT (x86 GPU)
|
||||||
uses: docker/bake-action@v4
|
uses: docker/bake-action@v4
|
||||||
with:
|
with:
|
||||||
@ -70,10 +48,6 @@ 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: Show disk info
|
|
||||||
run: df -h
|
|
||||||
- name: Show docker image info
|
|
||||||
run: docker image ls --all
|
|
||||||
- name: AMD/ROCm general build
|
- name: AMD/ROCm general build
|
||||||
env:
|
env:
|
||||||
AMDGPU: gfx
|
AMDGPU: gfx
|
||||||
@ -86,10 +60,6 @@ jobs:
|
|||||||
set: |
|
set: |
|
||||||
rocm.tags=${{ steps.setup.outputs.image-name }}-rocm
|
rocm.tags=${{ steps.setup.outputs.image-name }}-rocm
|
||||||
*.cache-from=type=gha
|
*.cache-from=type=gha
|
||||||
- name: Show disk info
|
|
||||||
run: df -h
|
|
||||||
- name: Show docker image info
|
|
||||||
run: docker image ls --all
|
|
||||||
- name: AMD/ROCm gfx900
|
- name: AMD/ROCm gfx900
|
||||||
env:
|
env:
|
||||||
AMDGPU: gfx900
|
AMDGPU: gfx900
|
||||||
@ -103,8 +73,6 @@ jobs:
|
|||||||
set: |
|
set: |
|
||||||
rocm.tags=${{ steps.setup.outputs.image-name }}-rocm-gfx900
|
rocm.tags=${{ steps.setup.outputs.image-name }}-rocm-gfx900
|
||||||
*.cache-from=type=gha
|
*.cache-from=type=gha
|
||||||
- name: Show docker image info
|
|
||||||
run: docker image ls --all
|
|
||||||
- name: AMD/ROCm gfx1030
|
- name: AMD/ROCm gfx1030
|
||||||
env:
|
env:
|
||||||
AMDGPU: gfx1030
|
AMDGPU: gfx1030
|
||||||
@ -118,8 +86,6 @@ jobs:
|
|||||||
set: |
|
set: |
|
||||||
rocm.tags=${{ steps.setup.outputs.image-name }}-rocm-gfx1030
|
rocm.tags=${{ steps.setup.outputs.image-name }}-rocm-gfx1030
|
||||||
*.cache-from=type=gha
|
*.cache-from=type=gha
|
||||||
- name: Show docker image info
|
|
||||||
run: docker image ls --all
|
|
||||||
- name: AMD/ROCm gfx1100
|
- name: AMD/ROCm gfx1100
|
||||||
env:
|
env:
|
||||||
AMDGPU: gfx1100
|
AMDGPU: gfx1100
|
||||||
@ -133,8 +99,6 @@ jobs:
|
|||||||
set: |
|
set: |
|
||||||
rocm.tags=${{ steps.setup.outputs.image-name }}-rocm-gfx1100
|
rocm.tags=${{ steps.setup.outputs.image-name }}-rocm-gfx1100
|
||||||
*.cache-from=type=gha
|
*.cache-from=type=gha
|
||||||
- name: Show docker image info
|
|
||||||
run: docker image ls --all
|
|
||||||
arm64_build:
|
arm64_build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: ARM Build
|
name: ARM Build
|
||||||
@ -157,8 +121,6 @@ jobs:
|
|||||||
tags: |
|
tags: |
|
||||||
${{ steps.setup.outputs.image-name }}-standard-arm64
|
${{ steps.setup.outputs.image-name }}-standard-arm64
|
||||||
cache-from: type=registry,ref=${{ steps.setup.outputs.cache-name }}-arm64
|
cache-from: type=registry,ref=${{ steps.setup.outputs.cache-name }}-arm64
|
||||||
- name: Show docker image info
|
|
||||||
run: docker image ls --all
|
|
||||||
- name: Build and push RPi build
|
- name: Build and push RPi build
|
||||||
uses: docker/bake-action@v4
|
uses: docker/bake-action@v4
|
||||||
with:
|
with:
|
||||||
@ -169,8 +131,6 @@ jobs:
|
|||||||
rpi.tags=${{ steps.setup.outputs.image-name }}-rpi
|
rpi.tags=${{ steps.setup.outputs.image-name }}-rpi
|
||||||
*.cache-from=type=registry,ref=${{ steps.setup.outputs.cache-name }}-arm64
|
*.cache-from=type=registry,ref=${{ steps.setup.outputs.cache-name }}-arm64
|
||||||
*.cache-to=type=registry,ref=${{ steps.setup.outputs.cache-name }}-arm64,mode=max
|
*.cache-to=type=registry,ref=${{ steps.setup.outputs.cache-name }}-arm64,mode=max
|
||||||
- name: Show docker image info
|
|
||||||
run: docker image ls --all
|
|
||||||
- name: Build and push RockChip build
|
- name: Build and push RockChip build
|
||||||
uses: docker/bake-action@v3
|
uses: docker/bake-action@v3
|
||||||
with:
|
with:
|
||||||
@ -180,8 +140,6 @@ 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
|
||||||
- name: Show docker image info
|
|
||||||
run: docker image ls --all
|
|
||||||
jetson_jp4_build:
|
jetson_jp4_build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: Jetson Jetpack 4
|
name: Jetson Jetpack 4
|
||||||
@ -208,8 +166,6 @@ 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
|
||||||
- name: Show docker image info
|
|
||||||
run: docker image ls --all
|
|
||||||
jetson_jp5_build:
|
jetson_jp5_build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: Jetson Jetpack 5
|
name: Jetson Jetpack 5
|
||||||
@ -236,8 +192,6 @@ 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
|
||||||
- name: Show docker image info
|
|
||||||
run: docker image ls --all
|
|
||||||
# The majority of users running arm64 are rpi users, so the rpi
|
# The majority of users running arm64 are rpi users, so the rpi
|
||||||
# build should be the primary arm64 image
|
# build should be the primary arm64 image
|
||||||
assemble_default_build:
|
assemble_default_build:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user