Skip to content

Commit

Permalink
Use buildx when building images (#150)
Browse files Browse the repository at this point in the history
* Add buildx option

* Just use it
  • Loading branch information
ludeeus authored Jul 4, 2022
1 parent 9340ac0 commit 62960d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ RUN \
&& apk add --no-cache \
git \
docker \
docker-cli-buildx \
coreutils \
&& apk add --no-cache --virtual .build-dependencies \
build-base \
Expand Down
2 changes: 1 addition & 1 deletion builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ function run_build() {

# Build image
bashio::log.info "Run build for ${repository}/${image}:${version} with platform ${docker_platform}"
docker build --pull -t "${repository}/${image}:${version}" \
docker buildx build --pull -t "${repository}/${image}:${version}" \
--platform "${docker_platform}" \
--build-arg "BUILD_FROM=${build_from}" \
--build-arg "BUILD_VERSION=${version}" \
Expand Down

0 comments on commit 62960d3

Please sign in to comment.