11 lines
421 B
Bash
11 lines
421 B
Bash
app_name='zymall'
|
|
# 定义应用版本
|
|
app_version='1.0.0'
|
|
app_repository='mt.ptzykjgs.com:8080/serve'
|
|
# 打包编译docker镜像
|
|
echo '----build image----'
|
|
docker buildx build -f Dockerfile -t "${app_name}:${app_version}" .
|
|
echo '----tag image----'
|
|
docker tag "${app_name}:${app_version}" "${app_repository}/${app_name}:${app_version}"
|
|
echo '----push image----'
|
|
docker push "${app_repository}/${app_name}:${app_version}" |