Commit cc34422c authored by zhouzihao's avatar zhouzihao

conf

parent 29b32554
Pipeline #93 failed
image: maven:3.6.0-jdk-8-alpine
stages: stages:
- build - build
- deploy - deploy
...@@ -12,15 +10,29 @@ cache: ...@@ -12,15 +10,29 @@ cache:
variables: variables:
MAVEN_OPTS: "-Dmaven.repo.local=.m2" MAVEN_OPTS: "-Dmaven.repo.local=.m2"
# 打包
dep: dep:
image: maven:3.6.0-jdk-8-alpine
stage: build stage: build
script: script:
- mvn clean package -Dmaven.test.skip=true - mvn clean package -Dmaven.test.skip=true
artifacts:
paths:
- target/
expire_in: 1 week
# 复制文件
cp:
stage: build
script:
- rm /root/tmpdata/*.jar - rm /root/tmpdata/*.jar
- cp target/app.jar /root/tmpdata/ - cp target/app.jar /root/tmpdata/
dependencies:
- dep
tags: tags:
- 'zzh-test' - 'zzh-test'
# 测试环境部署 # 测试环境部署
run: run:
stage: deploy stage: deploy
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment