1 Star 0 Fork 1

ebobo/tinyMediaManager

forked from 夜闻香/tinyMediaManager 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.gitlab-ci.yml 4.02 KB
一键复制 编辑 原始数据 按行查看 历史
Manuel Laggner 提交于 2021-12-08 09:42 . chore: version bump
image: maven:3-jdk-11
variables:
MAVEN_CLI_OPTS: "-s .ci/settings.xml --batch-mode"
MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository"
DS_DEFAULT_ANALYZERS: "gemnasium-maven"
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- .m2/repository/
stages:
- test
- build
- package
- deploy
test:jdk11:
stage: test
image: registry.gitlab.com/tinymediamanager/docker/jdk11
except:
- main@tinyMediaManager/tinyMediaManager
only:
- pushes
script:
- mvn $MAVEN_CLI_OPTS -U -DskipTests=false -DskipITs=true -Dmaven.test.failure.ignore=false clean test
artifacts:
expire_in: 1 days
test:jdk14:
stage: test
image: registry.gitlab.com/tinymediamanager/docker/jdk14
except:
- main@tinyMediaManager/tinyMediaManager
only:
- pushes
script:
- mvn $MAVEN_CLI_OPTS -U -DskipTests=false -DskipITs=true -Dmaven.test.failure.ignore=false clean test
artifacts:
expire_in: 1 days
test:jdk15:
stage: test
image: registry.gitlab.com/tinymediamanager/docker/jdk15
except:
- main@tinyMediaManager/tinyMediaManager
only:
- pushes
script:
- mvn $MAVEN_CLI_OPTS -U -DskipTests=false -DskipITs=true -Dmaven.test.failure.ignore=false clean test
artifacts:
expire_in: 1 days
test:jdk16:
stage: test
image: registry.gitlab.com/tinymediamanager/docker/jdk16
except:
- main@tinyMediaManager/tinyMediaManager
only:
- pushes
script:
- mvn $MAVEN_CLI_OPTS -U -DskipTests=false -DskipITs=true -Dmaven.test.failure.ignore=false clean test
artifacts:
expire_in: 1 days
# use dependency scanning (only on QA)
include:
template: Dependency-Scanning.gitlab-ci.yml
gemnasium-maven-dependency_scanning:
variables:
MAVEN_CLI_OPTS: "-DskipTests --batch-mode"
rules:
- if: '$QA_BUILD == "true"'
artifacts:
expire_in: 1 days
reports:
dependency_scanning: gl-dependency-scanning-report.json
# sonarqube analysis
sonarqube-qa:
stage: test
only:
variables:
- $QA_BUILD == "true"
except:
- pushes
allow_failure: true
script:
- mvn $MAVEN_CLI_OPTS clean compile
- mvn $MAVEN_CLI_OPTS sonar:sonar -Dsonar.projectKey=org.tinymediamanager:tinyMediaManager -Dsonar.organization=tinymediamanager -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=${SONARCLOUD_API_TOKEN}
artifacts:
expire_in: 1 days
##########################################
# nightly
##########################################
deploy:nightly:
stage: deploy
only:
variables:
- $NIGHTLY_BUILD == "true"
trigger:
include: .ci/deploy_nightly.yml
strategy: depend
##########################################
# PRE-RELEASE
##########################################
deploy:PRE-RELEASE:
stage: deploy
only:
- main@tinyMediaManager/tinyMediaManager
when: manual
trigger:
include: .ci/deploy_prerelease.yml
strategy: depend
##########################################
# RELEASE
##########################################
deploy:RELEASE:
stage: deploy
only:
- main@tinyMediaManager/tinyMediaManager
when: manual
trigger:
include: .ci/deploy_release.yml
strategy: depend
##########################################
# DOCKER - RELEASE
##########################################
deploy:DOCKER-RELEASE:
stage: deploy
image: docker:latest
only:
- main@tinyMediaManager/tinyMediaManager
when: manual
services:
- name: docker:dind
variables:
TMM_VERSION: "4.2.5"
IMAGE_NAME: tinymediamanager/tinymediamanager:${TMM_VERSION}
script:
# login
- docker login -u $DOCKERHUB_USERNAME -p $DOCKERHUB_PASSWORD
# build
- cd docker
- docker build -f Dockerfile -t $IMAGE_NAME .
- docker tag $IMAGE_NAME tinymediamanager/tinymediamanager:latest
# push to the registry
- docker push $IMAGE_NAME
- docker push tinymediamanager/tinymediamanager:latest
##########################################
# TEST
##########################################
deploy:test:
stage: deploy
only:
variables:
- $TEST_BUILD == "true"
when: manual
trigger:
include: .ci/deploy_test.yml
strategy: depend
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/ebobo/tinyMediaManager.git
git@gitee.com:ebobo/tinyMediaManager.git
ebobo
tinyMediaManager
tinyMediaManager
devel

搜索帮助

0d507c66 1850385 C8b1a773 1850385