Skip to content

Commit

Permalink
ci(ci): 修改ci
Browse files Browse the repository at this point in the history
修改ci
  • Loading branch information
MuXia-0326 committed Jun 29, 2024
1 parent b36a556 commit 277483f
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,6 @@ compile:
- master
# 运行脚本, 使用变量时要用到 $ 符号
script:
- echo '<settings xmlns="http://maven.apache.org/SETTINGS/1.2.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 https://maven.apache.org/xsd/settings-1.2.0.xsd">
<localRepository>/maven/repository</localRepository>
<mirrors>
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>*</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
</mirrors>
</settings>' > $HOME/.m2/settings.xml
- mvn clean package -Dmaven.test.skip=true

# 编译后有产物,所以要指定下过期时间和路径, 以供于其他阶段使用
Expand All @@ -71,6 +58,7 @@ build:
- docker build -t ${ALI_DOCKER_PREFIX}/${DOCKER_IMAGE} .
- docker login --username=${DOCKER_USERNAME} --password=${DOCKER_PASSWORD} ${ALI_DOCKER_URI}
- docker push ${ALI_DOCKER_PREFIX}/${DOCKER_IMAGE}
- docker logout ${ALI_DOCKER_URI}

# 第三阶段
deploy:
Expand Down

0 comments on commit 277483f

Please sign in to comment.