Skip to content

Commit

Permalink
chore(example): refactor Dockerfile to include default args (#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusrbrown authored Jul 14, 2024
1 parent f16a81a commit 450f0eb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 7 additions & 3 deletions example/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
# https://developers.home-assistant.io/docs/add-ons/configuration#add-on-dockerfile
ARG BUILD_FROM
FROM $BUILD_FROM
ARG BUILD_FROM=ghcr.io/home-assistant/amd64-base:3.20
FROM ${BUILD_FROM}

# renovate: datasource=github-releases depName=home-assistant/tempio versioning=loose
ARG TEMPIO_VERSION=2021.09.0

ARG BUILD_ARCH

# Execute during the build of the image
ARG TEMPIO_VERSION BUILD_ARCH
RUN \
curl -sSLf -o /usr/bin/tempio \
"https://github.com/home-assistant/tempio/releases/download/${TEMPIO_VERSION}/tempio_${BUILD_ARCH}"
Expand Down
3 changes: 0 additions & 3 deletions example/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,3 @@ labels:
org.opencontainers.image.description: 'Example add-on to use as a blueprint for new add-ons.'
org.opencontainers.image.source: 'https://github.com/bfra-me/ha-addon-repository'
org.opencontainers.image.licenses: 'Apache License 2.0'
args:
# renovate: datasource=github-releases depName=home-assistant/tempio versioning=loose
TEMPIO_VERSION: 2021.09.0

0 comments on commit 450f0eb

Please sign in to comment.