Files
Shortumation/.github/workflows/deploy.yml
T
2022-05-15 16:39:20 -04:00

31 lines
745 B
YAML

name: Build add-on
env:
MONITORED_FILES: "apparmor.txt build.yaml config.yaml Dockerfile data rootfs"
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
name: Deploy ${{ github.ref }}
strategy:
matrix:
arch: ["aarch64", "amd64", "armhf", "armv7", "i386"]
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Login to DockerHub
uses: docker/login-action@v2.0.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Publish
uses: home-assistant/builder@2022.03.1
with:
args: |
--${{ matrix.arch }} \
--target .