Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
met4j
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
metexplore
met4j
Commits
a0c2231e
Commit
a0c2231e
authored
3 weeks ago
by
lcottret
Browse files
Options
Downloads
Patches
Plain Diff
add dry run deploy central in ci
parent
7f6546d7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+18
-2
18 additions, 2 deletions
.gitlab-ci.yml
with
18 additions
and
2 deletions
.gitlab-ci.yml
+
18
−
2
View file @
a0c2231e
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment