18 lines
351 B
Bash
18 lines
351 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
set -e
|
||
|
|
||
|
apps=(init manager reporter sinker)
|
||
|
build_ctx="../../bin/linux"
|
||
|
img_prefix="harbor.gamegold.net.cn/bi"
|
||
|
img_tag="1.0.1"
|
||
|
|
||
|
cp -rf ../../bin/linux .
|
||
|
|
||
|
for app in "${apps[@]}"; do
|
||
|
echo "准备构建:$app"
|
||
|
docker build -t $img_prefix/$app:$img_tag --file Dockerfile_$app .
|
||
|
docker push $img_prefix/$app:$img_tag
|
||
|
done
|
||
|
|
||
|
rm -rf linux
|