移除gitlab ci

This commit is contained in:
小海
2020-04-17 13:27:06 +08:00
parent 7c2b8d8d28
commit c74aea6c3b

View File

@@ -1,30 +0,0 @@
image: maven:3.3.9-jdk-8
cache:
paths:
- .m2/repository
stages:
- test
- deploy
test:
stage: test
script:
- cp "$APP_TEST" ./src/main/resources/application-test.properties
- mvn clean test && cat target/site/jacoco/index.html
deploy:
stage: deploy
script:
- cp "$APP_PROD" ./src/main/resources/application-prod.properties
- mvn package -DskipTests
- eval $(ssh-agent -s)
- ssh-add <(echo "$SSH_PRIVATE_KEY" | base64 --decode)
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- ssh-keyscan celess.cn >> ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts
- scp target/blog-0.0.1-SNAPSHOT.jar root@celess.cn:/www/wwwroot/api.celess.cn
- ssh root@celess.cn "cd /www/wwwroot/api.celess.cn && bash build.sh"