Update .gitlab-ci.yml file

This commit is contained in:
Christopher Moyer 2022-10-14 01:50:07 +00:00
parent 47a3ed5adb
commit 8f614c34d5

View file

@ -34,17 +34,14 @@ cache:
# For merge requests do not `deploy` but only run `verify`.
# See https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
.verify: &verify
stages:
- test
- upload artifacts
.build: &verify
stage: test
script:
- 'mvn $MAVEN_CLI_OPTS verify'
except:
variables:
- $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
stage: upload artifacts
stage: deploy
script:
- 'mvn $MAVEN_CLI_OPTS deploy -s ci_settings.xml'
except: