-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (33 loc) · 907 Bytes
/
Copy pathbuild.yaml
File metadata and controls
37 lines (33 loc) · 907 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Build and publish add-on
on:
push:
branches: [main]
paths:
- "meshcentral/**"
release:
types: [published]
jobs:
build:
name: Build ${{ matrix.arch }}
runs-on: ubuntu-latest
strategy:
matrix:
arch: [aarch64, amd64, armhf, armv7, i386]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: home-assistant/builder@2024.03.5
with:
args: |
--${{ matrix.arch }} \
--target /data/meshcentral \
--image "ha-meshcentral-addon/meshcentral" \
--docker-hub "ghcr.io/andlo" \
--version ${{ github.ref_name }}