3 Star 0 Fork 0

张亚斐/archive-cloud

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.gitlab-ci.yml 3.95 KB
一键复制 编辑 原始数据 按行查看 历史
ldd 提交于 2023-07-28 15:10 . xml
image: registry.cn-beijing.aliyuncs.com/yunyuncx/mvn:3.6.1
cache:
key: maven-repository-cache
paths:
- .m2
# 定义使用变量
variables:
GIT_STRATEGY: "clone"
MAVEN_OPTS: "-Dmaven.repo.local=.m2"
# 定义JOB
stages:
- win
- docker
standalone:
stage: win
script:
- rm -rf archive-admin/src/main/resources/static/css/*.css
- rm -rf archive-admin/src/main/resources/static/js/*.js
- rm -rf archive-admin/src/main/resources/static/static/js/*.js
- wget http://8.142.97.38:8212/source.zip
- unzip source.zip
- cp static/js/*.js archive-admin/src/main/resources/static/js
- cp base/static/css/*.css archive-admin/src/main/resources/static/css
- cp static/js/*.js archive-admin/src/main/resources/static/static/js
- mvn clean package -DskipTests
artifacts:
paths:
- archive-admin/target/archive-admin.jar
- archive-admin/target/lib/archive*.jar
- archive-admin/target/lib/meida*.jar
expire_in: 1 day
only:
- master
tags:
- bzds_api_dev
net:
stage: win
script:
- rm -rf archive-admin/src/main/resources/static
- rm -rf archive-admin/src/main/resources/application-dev.yml
- rm -rf archive-admin/src/main/resources/bootstrap.yml
- mv archive-admin/src/main/resources/bootstrap-net.yml archive-admin/src/main/resources/bootstrap.yml
- mvn clean package -DskipTests
artifacts:
paths:
- archive-admin/target/archive-admin.jar
- archive-admin/target/lib
expire_in: 1 day
only:
- master
when: manual
tags:
- bzds_api_dev
mvn-package:
stage: docker
script:
# - sed -i 's/localhost/192.168.0.142/g' pom.xml
# - sed -i 's/172.24.59.144/192.168.0.142/g' pom.xml
- rm -rf archive-admin/src/main/resources/static/css/*.css
- rm -rf archive-admin/src/main/resources/static/js/*.js
- rm -rf archive-admin/src/main/resources/static/static/js/*.js
- wget http://8.142.97.38:8212/source.zip
- apk add zip
- unzip source.zip
- cp static/js/*.js archive-admin/src/main/resources/static/js
- cp base/static/css/*.css archive-admin/src/main/resources/static/css
- cp static/js/*.js archive-admin/src/main/resources/static/static/js
- mvn clean package -DskipTests
artifacts:
paths:
- archive-admin/target/archive-admin.jar
- archive-admin/target/lib
expire_in: 1 day
only:
- master
when: manual
tags:
- bzds_api_dev
docker-run:
stage: docker
cache:
key: docker-images
when: manual
dependencies:
- mvn-package
script:
- mkdir /admin/ -p
- cp -r archive-admin/target/lib archive-admin/target/archive-admin.jar archive-admin/Dockerfile archive-admin/docker-compose.yml archive-admin/run.sh /admin/
- cd /admin
# - if [ "$(docker-compose ps -aq --filter name=archive-admin)" ]; then docker-compose down archive-admin && docker rm archive-admin ;fi
- docker-compose up -d
only:
- master
tags:
- bzds_api_dev
uos:
stage: docker
script:
# - sed -i 's/localhost/192.168.0.142/g' pom.xml
# - sed -i 's/172.24.59.144/192.168.0.142/g' pom.xml
- rm -rf archive-admin/src/main/resources/static/css/*.css
- rm -rf archive-admin/src/main/resources/static/js/*.js
- rm -rf archive-admin/src/main/resources/static/static/js/*.js
- wget http://8.142.97.38:8212/source.zip
- apk add zip
- unzip source.zip
- cp static/js/*.js archive-admin/src/main/resources/static/js
- cp base/static/css/*.css archive-admin/src/main/resources/static/css
- cp static/js/*.js archive-admin/src/main/resources/static/static/js
- mvn clean package -DskipTests
- mv archive-admin/target/lib archive-admin/target/archive-admin.jar archive-admin/Dockerfile archive-admin/docker-compose.yml archive-admin/run.sh .
- docker-compose build
- docker save -o archive.tar archive-admin:latest
- pwd && ls
only:
- master
when: manual
tags:
- bzds_api_dev
artifacts:
paths:
- archive.tar
expire_in: 1 day
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mei_da/archive-cloud.git
git@gitee.com:mei_da/archive-cloud.git
mei_da
archive-cloud
archive-cloud
master

搜索帮助