Skip to content

Commit

Permalink
Fix build.
Browse files Browse the repository at this point in the history
  • Loading branch information
kudato committed Jan 17, 2020
1 parent 743af21 commit 37e2173
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,9 @@

source ./entrypoint.sh --import

# replace $2 to $3 in $1.
replace() { echo "${1//${2}/${3}}"; }

build_image() {
local name
name=$(replace "${FROM}" ":" "-")

docker build -t "${name}" \
--build-arg image="${FROM}"
local name; name="${FROM//":"/"-"}"
docker build -t "${name}" --build-arg image="${FROM}" .

if [[ "${?}" != "0" ]]
then
Expand Down

0 comments on commit 37e2173

Please sign in to comment.