Skip to content

Commit

Permalink
remove sudo use in docker; doesnt work for me with it.
Browse files Browse the repository at this point in the history
  • Loading branch information
UmanShahzad committed Nov 30, 2021
1 parent 1cdf9bb commit e1853d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ CGO_ENABLED=0 go build \
$ROOT/${CLI}

# docker container
sudo docker build --tag ipinfo/$CLI:$VSN $ROOT/$CLI/
docker build --tag ipinfo/$CLI:$VSN $ROOT/$CLI/

# cleanup
rm -r $ROOT/$CLI/build

if [ "$RELEASE" = "-r" ] || [ "$RELEASE" = "--release" ]; then
# push on docker hub
sudo docker push ipinfo/$CLI:$VSN
fi
docker push ipinfo/$CLI:$VSN
fi

0 comments on commit e1853d7

Please sign in to comment.