Commit 29b32554 authored by zhouzihao's avatar zhouzihao

conf-添加ci文件

parent c0e6df3b
Pipeline #92 failed with stages
in 1 second
image: maven:3.6.0-jdk-8-alpine
stages:
- build
- deploy
cache:
key: maven-repository-cache
paths:
- .m2
variables:
MAVEN_OPTS: "-Dmaven.repo.local=.m2"
dep:
stage: build
script:
- mvn clean package -Dmaven.test.skip=true
- rm /root/tmpdata/*.jar
- cp target/app.jar /root/tmpdata/
tags:
- 'zzh-test'
# 测试环境部署
run:
stage: deploy
script:
- rm /root/data/*.jar
- cp /root/tmpdata/*.jar /root/data/
- cd /root/data
- docker-compose down && docker-compose up -d
environment:
name: zzh-test
when: manual
only:
- master
tags:
- 'zzh-test'
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