Skip to content

Commit

Permalink
Use pre-built images (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
mib1185 authored Apr 20, 2024
1 parent 7548095 commit 8b28838
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 1 deletion.
47 changes: 47 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Build add-on

on:
pull_request:
branches: ["main"]
push:
branches: ["main"]

jobs:
build:
runs-on: ubuntu-latest
name: Build ${{ matrix.arch }} snmpd 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: "./snmpd"

- 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 snmpd add-on
uses: home-assistant/[email protected]
with:
args: |
${{ env.BUILD_ARGS }} \
--${{ matrix.arch }} \
--target /data/snmpd \
--addon
3 changes: 3 additions & 0 deletions snmpd/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 0.3.0
- use pre-built images

## 0.2.3
- add VScode dev container
- fix supervisor api permission denied error
Expand Down
3 changes: 2 additions & 1 deletion snmpd/config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: "SNMPD"
version: "0.2.3"
version: "0.3.0"
slug: "snmpd"
description: "Monitor your HA installation via snmp"
url: "https://github.com/mib1185/ha-addon-snmpd"
Expand All @@ -9,6 +9,7 @@ arch:
- armhf
- armv7
- i386
image: mib85/{arch}-ha-addon-snmpd
init: false
startup: services
host_network: true
Expand Down

0 comments on commit 8b28838

Please sign in to comment.