代码拉取完成,页面将自动刷新
同步操作将从 夜闻香/tinyMediaManager 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。