ci/cd
This commit is contained in:
@@ -7,10 +7,10 @@ app_name=$DRONE_REPO_NAME
|
|||||||
app_version=$DRONE_COMMIT
|
app_version=$DRONE_COMMIT
|
||||||
echo ${app_version}
|
echo ${app_version}
|
||||||
# 打包编译docker镜像
|
# 打包编译docker镜像
|
||||||
|
docker rm -f smartopsweb
|
||||||
|
docker rmi smartopsweb:latest
|
||||||
echo '----build image start----'
|
echo '----build image start----'
|
||||||
docker build -t smartopsweb:latest .
|
docker build -t smartopsweb:latest .
|
||||||
echo '----build image success----'
|
echo '----build image success----'
|
||||||
docker rm -f smartopsweb
|
|
||||||
docker rmi smartopsweb:latest
|
|
||||||
docker run --name smartopsweb -d -p 8080:80 smartopsweb:latest
|
docker run --name smartopsweb -d -p 8080:80 smartopsweb:latest
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user