68 lines
1.5 KiB
YAML
68 lines
1.5 KiB
YAML
name: Build landingpage
|
|
|
|
on:
|
|
pull_request:
|
|
branches: ["main"]
|
|
release:
|
|
types: ["published"]
|
|
|
|
jobs:
|
|
build:
|
|
name: Build landingpage
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
id-token: write
|
|
strategy:
|
|
matrix:
|
|
machine:
|
|
- generic-x86-64
|
|
- intel-nuc
|
|
- khadas-vim3
|
|
- odroid-c2
|
|
- odroid-c4
|
|
- odroid-m1
|
|
- odroid-n2
|
|
- odroid-xu
|
|
- qemuarm
|
|
- qemuarm-64
|
|
- qemux86
|
|
- qemux86-64
|
|
- raspberrypi
|
|
- raspberrypi2
|
|
- raspberrypi3
|
|
- raspberrypi3-64
|
|
- raspberrypi4
|
|
- raspberrypi4-64
|
|
- raspberrypi5-64
|
|
- tinker
|
|
- yellow
|
|
- green
|
|
steps:
|
|
- name: Checkout the repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Login to GitHub Container Registry
|
|
if: github.event_name == 'release'
|
|
uses: docker/login-action@v3.3.0
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.repository_owner }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Set build arguments
|
|
if: github.event_name != 'release'
|
|
run: echo "BUILD_ARGS=--test" >> $GITHUB_ENV
|
|
|
|
- name: Build landingpage
|
|
uses: home-assistant/builder@2024.08.2
|
|
with:
|
|
args: |
|
|
$BUILD_ARGS \
|
|
--target /data \
|
|
--no-latest \
|
|
--cosign \
|
|
--machine landingpage=${{ matrix.machine }}
|
|
|