Add tls support (#9) #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |