mirror of
https://github.com/lildude/ha-addon-teslamate.git
synced 2026-10-13 13:10:30 -04:00
* Add new service files * Remove moved file * Move files * Add exec perm * Update for new services * Remove xz-utils after use * Check labels * Move labels to build * Typo * List images * Fixit * Add super lint * Update labels * Whoops * Remove superlint * Add teslamate dependency * Fix url
49 lines
944 B
YAML
49 lines
944 B
YAML
name: Test
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- build.yaml
|
|
- config.yaml
|
|
- build.json
|
|
- config.json
|
|
- Dockerfile
|
|
- rootfs/**
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- build.yaml
|
|
- config.yaml
|
|
- build.json
|
|
- config.json
|
|
- Dockerfile
|
|
- rootfs/**
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
name: Build add-on
|
|
strategy:
|
|
matrix:
|
|
arch: ["amd64", "armv7", "aarch64"]
|
|
|
|
steps:
|
|
- name: Check out repository
|
|
uses: actions/checkout@v4.2.2
|
|
|
|
- name: Build add-on
|
|
uses: home-assistant/builder@2024.08.2
|
|
with:
|
|
args: |
|
|
--test \
|
|
--${{ matrix.arch }} \
|
|
--target /data/ \
|
|
--addon
|
|
|
|
- name: Image labels
|
|
run: |
|
|
docker inspect ghcr.io/lildude/ha-addon-teslamate-${{ matrix.arch }} --format='{{json .Config.Labels}}' | jq
|