Skip to content

Commit

Permalink
refactor: simplify build.sh script
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Volosatovs <[email protected]>
  • Loading branch information
rvolosatovs committed Mar 22, 2022
1 parent 094871c commit 0373f27
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

set -ex
#!/usr/bin/env sh
set -a

. ./deps.list
docker buildx build --platform linux/amd64,linux/arm64 \
$(while IFS= read -r line; do echo "--build-arg $line " | tr -d "\n"; done < <(grep -v '^ *#' < deps.list)) \
${@} .
$(for f in $(cut -d '=' -f 1 < deps.list); do printf "%s " "--build-arg $f=$(printenv ${f})"; done) \
${@} .

0 comments on commit 0373f27

Please sign in to comment.