Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
gschmidl committed Jan 18, 2024
0 parents commit 241d540
Show file tree
Hide file tree
Showing 8 changed files with 101 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/update-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Update version
run-name: Update latest version names of the docker images
on:
schedule:
- cron: '30 */4 * * *'
workflow_dispatch:

jobs:
logLatestRelease:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: octokit/[email protected]
id: get_latest_release
with:
route: GET /users/Donkie/packages/container/Spoolman/versions?per_page=100
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}

- run: "echo '${{ steps.get_latest_release.outputs.data }}' > /tmp/data.json"

- id: update_version
run: |
STABLE_VERSION=$(jq -r 'map(select(.metadata.container.tags | any(. == "latest"))) | .[0].metadata.container.tags | map(select(. != "latest")) | .[0]' /tmp/data.json 2>/dev/null || true)
echo Latest Stable: $STABLE_VERSION
if [ -n "$STABLE_VERSION" ]
then
sed -i 's|^version: .*|version: '"$STABLE_VERSION"'|' spoolman/config.yaml
fi
echo "message=Update version numbers to: '$STABLE_VERSION'" >> "$GITHUB_OUTPUT"
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "${{ steps.update_version.outputs.message }}"
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/.idea/
/hassio-spoolman.iml
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 Gunther Schmidl

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# hassio-spoolman

Home Assistant repository to run Spoolman as an addon

# Installation

Use the following link to add the repository:

[![Open your Home Assistant instance and show the add add-on repository dialog with a specific repository URL pre-filled.](https://my.home-assistant.io/badges/supervisor_add_addon_repository.svg)](https://my.home-assistant.io/redirect/supervisor_add_addon_repository/?repository_url=https%3A%2F%2Fgithub.com%2Fgschmidl%2Fhassio-spoolman)

Alternatively go to the Add-On Store, Click the three dots, then Repositories, and then add the following:

```
https://github.com/gschmidl/hassio-spoolman
```
5 changes: 5 additions & 0 deletions repository.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "Home Assistant Add-on: Spoolman",
"url": "https://github.com/gschmidl/hassio-spoolman",
"maintainer": "Gunther Schmidl"
}
16 changes: 16 additions & 0 deletions spoolman/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: "Spoolman"
description: "Run the latest stable version of Spoolman."
url: "https://github.com/Donkie/Spoolman"
slug: "spoolman"
init: false
arch:
- amd64
- arm64
- armv7
startup: application
webui: "[PROTO:option_name]://[HOST]:[PORT:7912]"
boot: auto
ports:
7912/tcp: 7912
image: ghcr.io/donkie/spoolman
version: 0.15
Binary file added spoolman/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added spoolman/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 241d540

Please sign in to comment.