haiti-framework/.gitlab-ci.yml

17 lines
373 B
YAML
Raw Normal View History

2022-01-22 11:45:31 +03:00
image: maven:3.8.4-openjdk-11
2022-01-21 18:12:52 +03:00
variables:
MAVEN_OPTS: "-Dmaven.repo.local=./.m2/repository"
stages:
- deploy
2022-01-22 11:32:09 +03:00
deploy:
stage: deploy
2022-01-21 18:12:52 +03:00
only:
- /^v.*$/
2022-01-22 12:08:00 +03:00
except:
- branches
2022-01-22 11:58:42 +03:00
before_script:
2022-01-22 12:03:58 +03:00
- gpg --pinentry-mode loopback --passphrase $GPG_PASSPHRASE --import $GPG_PRIVATE_KEY
2022-01-21 18:12:52 +03:00
script:
2022-01-22 12:08:00 +03:00
- 'mvn --settings $MAVEN_SETTINGS -U -P ossrh,release clean deploy'