allLikeMall/yudao-server/push.sh

11 lines
421 B
Bash
Raw Permalink Normal View History

2024-09-25 17:59:13 +08:00
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}"