Skip to content

Merge pull request #1 from cociweb/dependabot/github_actions/home-ass… #7

Merge pull request #1 from cociweb/dependabot/github_actions/home-ass…

Merge pull request #1 from cociweb/dependabot/github_actions/home-ass… #7

Workflow file for this run

name: Build Add-on
on:
push:
branches:
- main
tags: [ 'v*.*.*' ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
addon: ["custom_whisper"]
arch: ["aarch64", "amd64"]
steps:
- name: ⤵️ Check out code from GitHub
uses: actions/[email protected]
- name: Get information
id: info
uses: home-assistant/actions/helpers/info@master
with:
path: ./${{ matrix.addon }}
- name: Login to GitHub Container Registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.ACTION_TOKEN }}
- name: Build ${{ matrix.arch }} add-on
# if: github.event_name == 'push' && contains(github.ref, '/tags/v')
uses: home-assistant/[email protected]
with:
args: |
--${{ matrix.arch }} \
--target ${{matrix.addon}} \
--image "${{ matrix.arch }}-addon-whisper" \
--docker-hub "ghcr.io/${{ github.repository_owner }}"