telegram-bot/.gitlab-ci.yml

17 lines
373 B
YAML
Raw Permalink Normal View History

2022-04-08 21:50:06 +03:00
image: maven:3.8.5-openjdk-17
2022-01-25 10:30:16 +03:00
variables:
MAVEN_OPTS: "-Dmaven.repo.local=./.m2/repository"
stages:
- deploy
deploy:
stage: deploy
only:
2022-04-08 21:50:06 +03:00
- /^v.*$/
2022-01-25 10:30:16 +03:00
except:
- branches
before_script:
- gpg --pinentry-mode loopback --passphrase $GPG_PASSPHRASE --import $GPG_PRIVATE_KEY
script:
- 'mvn --settings $MAVEN_SETTINGS -U -P ossrh,release clean deploy'