Permalink
Fetching contributors…
Cannot retrieve contributors at this time
51 lines (50 sloc) 1.73 KB
assets:
settings.xml: zerocracy/home#assets/aintshy/settings.xml
pubring.gpg: zerocracy/home#assets/pubring.gpg
secring.gpg: zerocracy/home#assets/secring.gpg
id_rsa: zerocracy/home#assets/heroku-key
id_rsa.pub: zerocracy/home#assets/heroku-key.pub
s3cfg: zerocracy/home#assets/s3cfg
env:
MAVEN_OPTS: -XX:MaxPermSize=256m -Xmx1g
install:
- sudo gem install pdd
deploy:
script: |
mvn clean deploy -Paintshy --errors --settings ../settings.xml
mvn clean
pdd --source=$(pwd) --verbose --file=aintshy-hub.xml
s3cmd --no-progress put aintshy-hub.xml --config=../s3cfg s3://pdd.teamed.io/aintshy-hub.xml
release:
script: |
mvn versions:set "-DnewVersion=${tag}"
git commit -am "${tag}"
mv ../settings.xml settings.xml
mvn clean install -Pqulice --errors
mvn liquibase:update -Paintshy --errors --settings settings.xml
git remote add heroku git@heroku.com:aintshy.git
mkdir ~/.ssh
mv ../id_rsa ../id_rsa.pub ~/.ssh
chmod -R 600 ~/.ssh/*
echo -e "Host *\n StrictHostKeyChecking no\n UserKnownHostsFile=/dev/null" > ~/.ssh/config
build=$(git rev-parse --short HEAD)
sed -i "s/BUILD/${build}/g" src/main/resources/META-INF/MANIFEST.MF
git add src/main/resources/META-INF/MANIFEST.MF
git commit -m 'build number set'
git add settings.xml
git commit -m 'settings.xml'
git fetch
git push -f heroku $(git symbolic-ref --short HEAD):master
git reset HEAD~1
curl -f --connect-timeout 15 --retry 5 --retry-delay 30 http://i.aintshy.com
commanders:
- yegor256
merge:
script: |-
mvn help:system clean install -Pqulice --errors --settings ../settings.xml
mvn clean
pdd --source=$(pwd) --verbose --file=/dev/null
commanders: []
architect:
- yegor256
- karato