Skip to content

create stale workflow #14

create stale workflow

create stale workflow #14

Workflow file for this run

name: Build add-on
on:
pull_request:
branches: ["main"]
push:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
name: Build ${{ matrix.arch }} syslog add-on
strategy:
matrix:
arch: ["aarch64", "amd64", "armhf", "armv7", "i386"]
steps:
- name: Check out repository
uses: actions/[email protected]
- name: Get information
id: info
uses: home-assistant/actions/helpers/info@master
with:
path: "./syslog"
- name: Set build arguments
run: |
if [[ -z "${{ github.head_ref }}" ]] && [[ "${{ github.event_name }}" == "push" ]]; then
echo "BUILD_ARGS=--docker-hub-check" >> $GITHUB_ENV;
fi
- name: Login to DockerHub
if: env.BUILD_ARGS == '--docker-hub-check'
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build syslog add-on
uses: home-assistant/[email protected]
with:
args: |
${{ env.BUILD_ARGS }} \
--${{ matrix.arch }} \
--target /data/syslog \
--addon