Skip to content

Publish

Publish #48

Workflow file for this run

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 }}