From dddeff22e6d4b3d24633348d7794795850c2671b Mon Sep 17 00:00:00 2001 From: jaguililla Date: Thu, 29 Aug 2024 18:51:20 +0200 Subject: [PATCH 1/2] Fix GitHub CI --- .github/workflows/release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 30b27fd..7e34b5f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -46,8 +46,10 @@ jobs: export REGISTRY_PASSWORD="${GITHUB_TOKEN}" export POM_VERSION="$(mvn help:evaluate -D expression=project.version -q -D forceStdout)" - git config --global user.name "${GIT_USERNAME}" ./mvnw -D image.registry=ghcr.io/jaguililla/hexagonal_spring -D spring-boot.build-image.publish=true -B deploy + + git config --global user.name "${GIT_USERNAME}" + git config --global user.email "${GIT_USERNAME}@github.com" git tag -m "Release ${POM_VERSION}" "${POM_VERSION}" git push --tags - name: Publish Client From e2aed22dbd6a1a653f3d3ff0b68eee180cdc494e Mon Sep 17 00:00:00 2001 From: jaguililla Date: Thu, 29 Aug 2024 19:04:44 +0200 Subject: [PATCH 2/2] Fix :GitLab :release :CI --- .github/workflows/release.yml | 3 +-- .gitlab-ci.yml | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7e34b5f..a56b52e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -48,8 +48,7 @@ jobs: ./mvnw -D image.registry=ghcr.io/jaguililla/hexagonal_spring -D spring-boot.build-image.publish=true -B deploy - git config --global user.name "${GIT_USERNAME}" - git config --global user.email "${GIT_USERNAME}@github.com" + git config user.name "${GITHUB_ACTOR}" git tag -m "Release ${POM_VERSION}" "${POM_VERSION}" git push --tags - name: Publish Client diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9f0182b..363ddca 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -73,4 +73,3 @@ release: release: tag_name: ${POM_VERSION} description: Release ${POM_VERSION} - ref: ${POM_VERSION}