-
Notifications
You must be signed in to change notification settings - Fork 590
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/sh | ||
# eg.1 : sh build-image.sh | ||
# eg.2, set image: sh build-image.sh bitbus/paopao-ce | ||
|
||
VERSION=`git describe --tags --always | cut -f1,2 -d "-"` # eg.: 0.2.5 | ||
IMAGE="bitbus/paopao-ce" | ||
|
||
if [ -n "$1" ]; then | ||
IMAGE="$1" | ||
fi | ||
if [ -n "$2" ]; then | ||
VERSION="$2" | ||
fi | ||
|
||
# build image | ||
docker buildx build \ | ||
--build-arg USE_DIST="yes" \ | ||
--tag "$IMAGE:all-in-one-${VERSION}" \ | ||
--tag "$IMAGE:all-in-one-latest" \ | ||
. -f Dockerfile.allinone | ||
|
||
# push to image rep | ||
# if [ -n "$1" ]; then | ||
# docker push "$IMAGE:${VERSION}" | ||
# docker push "$IMAGE:latest" | ||
# fi |