Skip to content
Snippets Groups Projects
Commit a0c2231e authored by lcottret's avatar lcottret
Browse files

add dry run deploy central in ci

parent 7f6546d7
No related branches found
No related tags found
No related merge requests found
...@@ -137,7 +137,7 @@ deploySnapshot: ...@@ -137,7 +137,7 @@ deploySnapshot:
only: only:
- develop - develop
deployCentral: .template_deployCentral:
image: eclipse-temurin:17.0.12_7-jdk image: eclipse-temurin:17.0.12_7-jdk
stage: deploy stage: deploy
before_script: before_script:
...@@ -152,10 +152,18 @@ deployCentral: ...@@ -152,10 +152,18 @@ deployCentral:
- 'which gpg || ( apt-get update -qy && apt-get install gnupg -qqy )' - 'which gpg || ( apt-get update -qy && apt-get install gnupg -qqy )'
- export GPG_TTY=$(tty) - export GPG_TTY=$(tty)
- gpg -v --batch --import <(echo "${GPG_PRIVATE_KEY}") - gpg -v --batch --import <(echo "${GPG_PRIVATE_KEY}")
script:
- git config --global user.email "$env:GITLAB_USER_EMAIL" - git config --global user.email "$env:GITLAB_USER_EMAIL"
- git config --global user.name "$env:GITLAB_USER_NAME" - git config --global user.name "$env:GITLAB_USER_NAME"
- git checkout -B "$CI_COMMIT_REF_NAME" - git checkout -B "$CI_COMMIT_REF_NAME"
script:
- mvn $MAVEN_CLI_OPTS release:prepare -DautoVersionSubmodules=true -Dmaven.test.skip=true -DscmCommentPrefix="[skip ci]" -DupdateWorkingCopyVersions=false -DpushChanges=false -DskipTests
- mvn $MAVEN_CLI_OPTS release:perform -Darguments=-Dgpg.passphrase=${GPG_PASSPHRASE} -DlocalCheckout=true -DskipTests -Dmaven.test.skip=true
tags:
- stable
deployCentral:
extends: .template_deployCentral
script:
- mvn $MAVEN_CLI_OPTS release:prepare -DautoVersionSubmodules=true -Dmaven.test.skip=true -DscmCommentPrefix="[skip ci]" -DupdateWorkingCopyVersions=false -DpushChanges=false -DskipTests - mvn $MAVEN_CLI_OPTS release:prepare -DautoVersionSubmodules=true -Dmaven.test.skip=true -DscmCommentPrefix="[skip ci]" -DupdateWorkingCopyVersions=false -DpushChanges=false -DskipTests
- mvn $MAVEN_CLI_OPTS release:perform -Darguments=-Dgpg.passphrase=${GPG_PASSPHRASE} -DlocalCheckout=true -DskipTests -Dmaven.test.skip=true - mvn $MAVEN_CLI_OPTS release:perform -Darguments=-Dgpg.passphrase=${GPG_PASSPHRASE} -DlocalCheckout=true -DskipTests -Dmaven.test.skip=true
only: only:
...@@ -163,6 +171,14 @@ deployCentral: ...@@ -163,6 +171,14 @@ deployCentral:
tags: tags:
- stable - stable
deployCentralDryRun:
extends: .template_deployCentral
script:
- mvn $MAVEN_CLI_OPTS release:prepare -DautoVersionSubmodules=true -Dmaven.test.skip=true -DscmCommentPrefix="[skip ci]" -DupdateWorkingCopyVersions=false -DpushChanges=false -DskipTests -DdryRun
- mvn $MAVEN_CLI_OPTS release:perform -Darguments=-Dgpg.passphrase=${GPG_PASSPHRASE} -DlocalCheckout=true -DskipTests -Dmaven.test.skip=true -DdryRun
tags:
- stable
buildSingularity: buildSingularity:
stage: build-containers stage: build-containers
image: image:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment