Skip to content

Commit

Permalink
Fix :GitLab :release :CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jaguililla committed Aug 29, 2024
1 parent 8af41fc commit 4ae58e7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,10 @@ release:
- export REPOSITORY="${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/maven"
- export ALT_REPOSITORY="altDeploymentRepository=gitlab::default::${REPOSITORY}"
- export IMG_REGISTRY="${CI_REGISTRY}/jaguililla/hexagonal_spring"
- export POM_VERSION="$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)"
- ./mvnw -s ci_settings.xml -D ${ALT_REPOSITORY} -D image.registry=${IMG_REGISTRY} -B -P publish
- rm -rf "${CLIENT_PATH}/src/main/java/${CONTROLLERS_PATH}"
- mvn -f "${CLIENT_PATH}/pom.xml" -B -D ${ALT_REPOSITORY} clean deploy
release:
tag_name: tag
description: Description TODO
tag_name: ${POM_VERSION}
description: Release ${POM_VERSION}

0 comments on commit 4ae58e7

Please sign in to comment.