Files
tiesheng-springboot/.gitlab-ci.yml
2023-08-14 15:43:48 +08:00

29 lines
607 B
YAML

stages:
- deploy
qodana:
stage: deploy
tags:
- zengos
image:
name: jetbrains/qodana-jvm
entrypoint: [ "" ]
script:
- qodana --save-report --baseline=qodana.sarif.json --results-dir=$CI_PROJECT_DIR/.qodana
deploy-jar:
stage: deploy
tags:
- hzkepai
rules:
- if: $CI_COMMIT_TAG
script:
- mvn clean deploy -Dmaven.test.skip -DaltDeploymentRepository=master::default::file:$TAG_REPO_FOLDER
- cd $TAG_REPO_FOLDER
- git checkout master
- git pull
- git add .
- git commit -m "deploy $CI_PROJECT_NAME $CI_COMMIT_TAG"
- git push origin master