Commit 911455ae authored by Yong.Yang's avatar Yong.Yang

添加 .gitlab-ci.yml

parent bcdfbfd5
Pipeline #390 passed with stages
in 2 seconds
# 打包任务
build-job:
stage: build
# 指定标签,只有具有该标签的runner才会执行
tags:
- dev
script:
# 使用Maven打包
- echo 'runner build'
- java -version
# - mvn clean package -Dfile.encoding=UTF-8 -Dmaven.test.skip=true
# 将jar包、Dockerfile、运行脚本复制到指定目录
# - cp target/mall-tiny-gitlab-1.0-SNAPSHOT.jar /mydata/build/mall-tiny-gitlab-1.0-SNAPSHOT.jar
# 部署任务
deploy-job:
stage: deploy
tags:
- dev
services:
- java:8
- node:latest
script:
# - chmod +x run.sh
- echo 'runner deploy'
- echo 'runner deploy'
- node -v
\ No newline at end of file
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