Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mould-vuecli3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lhfe
mould-vuecli3
Commits
d973a532
Commit
d973a532
authored
Oct 13, 2020
by
lipengcheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docker
parent
51bd0afe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
12 deletions
+5
-12
.gitlab-ci.yml
.gitlab-ci.yml
+5
-12
No files found.
.gitlab-ci.yml
View file @
d973a532
...
...
@@ -71,18 +71,11 @@ job-deploy:
-
echo '登录部署服务器拉取镜像并启动'
-
pwd
-
whoami
# - ssh root@119.45.165.197 "docker pull ${ImageName}"
# - ssh root@119.45.165.197 "if [ $(docker ps -aq --filter name=${ContainerName}) ]; then docker rm -f ${ContainerName};fi"
# - ssh root@119.45.165.197 "docker images"
# - ssh root@119.45.165.197 "docker ps"
# - ssh root@119.45.165.197 "docker run -itd -p 84:80 --name ${ContainerName} ${ImageName}"
# - sh ./notification_boot.sh "on_success" ${CI_COMMIT_REF_SLUG} ${CI_COMMIT_SHA:0:8} "PackageName_productionRelease_${CI_COMMIT_REF_SLUG}_${CI_COMMIT_SHA:0:8}"
# - echo '启动成功...'
-
ssh root@119.45.165.197 "docker pull ${ImageName} \
if [ $(docker ps -aq --filter name=${ContainerName}) ]; then docker rm -f ${ContainerName};fi \
docker images \
docker ps \
docker run -itd -p 84:80 --name ${ContainerName} ${ImageName}"
-
ssh root@119.45.165.197 "docker pull ${ImageName}"
-
ssh root@119.45.165.197 "if [ $(docker ps -aq --filter name=${ContainerName}) ]; then docker rm -f ${ContainerName};fi"
-
ssh root@119.45.165.197 "docker images"
-
ssh root@119.45.165.197 "docker ps"
-
ssh root@119.45.165.197 "docker run -itd -p 84:80 --name ${ContainerName} ${ImageName}"
-
sh ./notification_boot.sh "on_success" ${CI_COMMIT_REF_SLUG} ${CI_COMMIT_SHA:0:8} "PackageName_productionRelease_${CI_COMMIT_REF_SLUG}_${CI_COMMIT_SHA:0:8}"
-
echo '启动成功...'
tags
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment