Add new repository workflow (#109)

* Add new repository workflow

* Prettified Code!

* Address add-on lint errors

* Migrate Docker build arguments

* Documentation tweaks

Co-authored-by: frenck <frenck@users.noreply.github.com>
This commit is contained in:
Franck Nijhof 2021-01-21 22:58:00 +01:00 committed by GitHub
parent da81e1ed9a
commit 952c282993
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 663 additions and 27 deletions

View file

@ -79,4 +79,4 @@ If you are more interested in stable releases of our add-ons:
[project-stage-shield]: https://img.shields.io/badge/project%20stage-experimental-yellow.svg
[release-shield]: https://img.shields.io/badge/version-{{ version }}-blue.svg
[release]: {{ repo }}/tree/{{ version }}
[screenshot]: https://github.com/hassio-addons/addon-grocy/raw/master/images/screenshot.gif
[screenshot]: https://github.com/hassio-addons/addon-grocy/raw/main/images/screenshot.gif

View file

@ -70,7 +70,7 @@ dealing with an unknown issue. Possible values are:
- `debug`: Shows detailed debug information.
- `info`: Normal (usually) interesting events.
- `warning`: Exceptional occurrences that are not errors.
- `error`: Runtime errors that do not require immediate action.
- `error`: Runtime errors that do not require immediate action.
- `fatal`: Something went terribly wrong. Add-on becomes unusable.
Please note that each level automatically includes log messages from a
@ -123,7 +123,7 @@ Is used for setting the language. Choose between:
Determines the currency as displayed in the Grocy interface, specified by the
ISO4217 three digit currency code.
Examples: `USD`, `CAD`, `GBP` or `EUR`.
Examples: `USD`, `CAD`, `GBP` or `EUR`.
### Option: `entry_page`
@ -190,16 +190,15 @@ equal Sunday:
## Changelog & Releases
This repository keeps a change log using [GitHub's releases][releases]
functionality. The format of the log is based on
[Keep a Changelog][keepchangelog].
functionality.
Releases are based on [Semantic Versioning][semver], and use the format
of ``MAJOR.MINOR.PATCH``. In a nutshell, the version will be incremented
of `MAJOR.MINOR.PATCH`. In a nutshell, the version will be incremented
based on the following:
- ``MAJOR``: Incompatible or major changes.
- ``MINOR``: Backwards-compatible new features and enhancements.
- ``PATCH``: Backwards-compatible bugfixes and package updates.
- `MAJOR`: Incompatible or major changes.
- `MINOR`: Backwards-compatible new features and enhancements.
- `PATCH`: Backwards-compatible bugfixes and package updates.
## Support
@ -256,7 +255,6 @@ SOFTWARE.
[grocy-demo]: https://demo-en.grocy.info
[grocy]: https://grocy.info/
[issue]: https://github.com/hassio-addons/addon-grocy/issues
[keepchangelog]: http://keepachangelog.com/en/1.0.0/
[python-packages]: https://pypi.org/
[reddit]: https://reddit.com/r/homeassistant
[releases]: https://github.com/hassio-addons/addon-grocy/releases

View file

@ -65,25 +65,28 @@ COPY rootfs /
# Build arguments
ARG BUILD_ARCH
ARG BUILD_DATE
ARG BUILD_DESCRIPTION
ARG BUILD_NAME
ARG BUILD_REF
ARG BUILD_REPOSITORY
ARG BUILD_VERSION
# Labels
LABEL \
io.hass.name="Grocy" \
io.hass.description="ERP beyond your fridge! A groceries & household management solution for your home" \
io.hass.name="${BUILD_NAME}" \
io.hass.description="${BUILD_DESCRIPTION}" \
io.hass.arch="${BUILD_ARCH}" \
io.hass.type="addon" \
io.hass.version=${BUILD_VERSION} \
maintainer="Franck Nijhof <frenck@addons.community>" \
org.opencontainers.image.title="Grocy" \
org.opencontainers.image.description="ERP beyond your fridge! A groceries & household management solution for your home" \
org.opencontainers.image.title="${BUILD_NAME}" \
org.opencontainers.image.description="${BUILD_DESCRIPTION}" \
org.opencontainers.image.vendor="Home Assistant Community Add-ons" \
org.opencontainers.image.authors="Franck Nijhof <frenck@addons.community>" \
org.opencontainers.image.licenses="MIT" \
org.opencontainers.image.url="https://addons.community" \
org.opencontainers.image.source="https://github.com/hassio-addons/addon-grocy" \
org.opencontainers.image.documentation="https://github.com/hassio-addons/addon-grocy/blob/master/README.md" \
org.opencontainers.image.source="https://github.com/${BUILD_REPOSITORY}" \
org.opencontainers.image.documentation="https://github.com/${BUILD_REPOSITORY}/blob/main/README.md" \
org.opencontainers.image.created=${BUILD_DATE} \
org.opencontainers.image.revision=${BUILD_REF} \
org.opencontainers.image.version=${BUILD_VERSION}

View file

@ -1,11 +1,9 @@
{
"squash": false,
"build_from": {
"aarch64": "hassioaddons/base-aarch64:8.0.5",
"amd64": "hassioaddons/base-amd64:8.0.5",
"armhf": "hassioaddons/base-armhf:8.0.5",
"armv7": "hassioaddons/base-armv7:8.0.5",
"i386": "hassioaddons/base-i386:8.0.5"
},
"args": {}
}
}

View file

@ -10,9 +10,7 @@
"panel_icon": "mdi:cart",
"startup": "system",
"arch": ["aarch64", "amd64", "armhf", "armv7", "i386"],
"boot": "auto",
"hassio_api": true,
"hassio_role": "default",
"map": ["ssl"],
"ports": {
"80/tcp": null