2023-04-08 17:24:28 +02:00
|
|
|
name: Maintain Cache
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: "13 0 * * 0,4"
|
|
|
|
|
|
|
|
env:
|
|
|
|
PYTHON_VERSION: 3.9
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
multi_arch_build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: Image Build
|
|
|
|
steps:
|
|
|
|
- name: Remove unnecessary files
|
|
|
|
run: |
|
|
|
|
sudo rm -rf /usr/share/dotnet
|
|
|
|
sudo rm -rf /usr/local/lib/android
|
|
|
|
sudo rm -rf /opt/ghc
|
|
|
|
- id: lowercaseRepo
|
|
|
|
uses: ASzc/change-string-case-action@v5
|
|
|
|
with:
|
|
|
|
string: ${{ github.repository }}
|
|
|
|
- name: Check out code
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Set up QEMU
|
|
|
|
uses: docker/setup-qemu-action@v2
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v2
|
|
|
|
- name: Log in to the Container registry
|
2023-06-11 14:21:59 +02:00
|
|
|
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc
|
2023-04-08 17:24:28 +02:00
|
|
|
with:
|
|
|
|
registry: ghcr.io
|
|
|
|
username: ${{ github.actor }}
|
|
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Create version file
|
|
|
|
run: make version
|
|
|
|
- name: Build and push
|
2023-04-15 22:21:23 +02:00
|
|
|
uses: docker/build-push-action@v4
|
2023-04-08 17:24:28 +02:00
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
push: false
|
|
|
|
platforms: linux/amd64,linux/arm64
|
|
|
|
target: frigate
|
|
|
|
cache-from: type=gha
|