gilde-ci-cd/templates/java/maven/maven-database-diff.gitlab-ci.yml
2022-07-13 17:06:18 +02:00

21 lines
515 B
YAML

include:
local: "templates/java/java-common-db.gitlab-ci.yml"
.maven-database-diff:
extends:
- .database-diff-common
image: $MAVEN_IMAGE
variables:
MAVEN_EXTRA_OPTS: ""
PATH_TO_DIFF: "target/db-diff.xml"
script:
- >
if [ "$BACKEND_DIR" != "" ]; then
cd $BACKEND_DIR
fi
- mvn $MAVEN_CLI_OPTS $MAVEN_EXTRA_OPTS compile liquibase:update liquibase:diff $MVN_EXTRA_ARGS
artifacts:
when: on_failure
expire_in: 2 weeks
paths:
- '**/target/db-diff.xml'