stages: - deploy - package 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