-
Notifications
You must be signed in to change notification settings - Fork 20
38 lines (36 loc) · 1.03 KB
/
publish.yml
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
38
name: "Publish"
on:
release:
types: [published]
workflow_dispatch:
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
target: ['ai.server', 'double-take']
fail-fast: false
steps:
- name: Free disk space
if: matrix.target == 'ai.server'
run: |
curl -L -k https://raw.githubusercontent.com/apache/flink/master/tools/azure-pipelines/free_disk_space.sh | bash
- name: Checkout the repository
uses: actions/checkout@v3
- name: Login to GHCR
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build
uses: home-assistant/builder@master
with:
args: |
--amd64 \
--aarch64 \
--no-latest \
-i hassio-addon-${{ matrix.target }}-{arch} \
--target ${{ matrix.target }} \
--docker-hub ghcr.io/${{ secrets.DOCKER_USERNAME }}