Fix deploy missing creds
This commit is contained in:
11
circle.yml
11
circle.yml
@@ -10,6 +10,8 @@ dependencies:
|
||||
- sudo ln -sfn /usr/local/apache-maven-3.3.9 /usr/local/apache-maven
|
||||
override:
|
||||
- mvn -V -DskipTests clean install dependency:resolve-plugins dependency:go-offline
|
||||
post:
|
||||
- ./env.sh
|
||||
|
||||
test:
|
||||
override:
|
||||
@@ -19,11 +21,4 @@ deployment:
|
||||
master:
|
||||
branch: master
|
||||
commands:
|
||||
- mvn clean
|
||||
- mvn -s settings.xml -Drtr.release=true -P release
|
||||
- git config --global user.email "me@ronjenkins.info"
|
||||
- git config --global user.name "Ronald Jack Jenkins Jr."
|
||||
- git add pom.xml
|
||||
- git commit -m "Committing release $(cat .version)"
|
||||
- git tag $(cat .version)
|
||||
- git push origin $(cat .version)
|
||||
- ./deploy.sh
|
||||
|
||||
20
deploy.sh
Normal file
20
deploy.sh
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
mvn clean
|
||||
|
||||
set -o allexport
|
||||
source .env
|
||||
set +o allexport
|
||||
rm .env
|
||||
|
||||
mvn -s settings.xml -Drtr.release=true -P release
|
||||
|
||||
git config --global user.email "me@ronjenkins.info"
|
||||
git config --global user.name "Ronald Jack Jenkins Jr."
|
||||
|
||||
POM_VERSION=$(cat .version | xargs)
|
||||
|
||||
git add pom.xml
|
||||
git commit -m "Committing release $POM_VERSION"
|
||||
|
||||
git tag "$POM_VERSION"
|
||||
git push origin "$POM_VERSION"
|
||||
Reference in New Issue
Block a user