Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ISY-391: SBOM generation and GPG signing for IF2.5 #38

Open
wants to merge 2 commits into
base: release/5.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,32 @@ deploy-snapshot:

deploy:
extends: .maven-deploy
script:
- 'if [[ -z $DEPLOYURL_RELEASE || -z $DEPLOYURL_SNAPSHOT ]] ; then echo "DEPLOY_URLs not found. Stopping deployment..."; exit 66 ; fi'
- >
mvn -s $ISY_MAVEN_SETTINGS $MAVEN_CLI_OPTS $MAVEN_DEPLOY_OPTS org.honton.chas:exists-maven-plugin:0.7.0:remote
-Dexists.failIfExists=true
-Dexists.skipIfSnapshot=true
-Dexists.repository=${EXISTS_RELEASE_REPO}
-Dexists.snapshotRepository=${EXISTS_SNAPSHOT_REPO}
-Dexists.serverId=${EXISTS_RELEASE_REPO_ID}
-Dexists.snapshotServerId=${EXISTS_SNAPSHOT_REPO_ID}
-Drevision=$NEXT_VERSION
- '[[ "$MAVEN_INSTALL_DEPENDENCIES" = "true" ]] && mvn -s $ISY_MAVEN_SETTINGS $MAVEN_CLI_OPTS $MAVEN_DEPLOY_OPTS -am -Drevision=$NEXT_VERSION clean install -DskipTests'
- echo "$GPG_PRIVATE_KEY" | gpg --batch --import
- >
mvn -s $ISY_MAVEN_SETTINGS
-Dtidy.skip=true
-Dmaven.test.skip=true
-DskipTests
-Dmaven.install.skip=true
-DdeployAtEnd=true
-Drevision=$NEXT_VERSION
$MAVEN_CLI_OPTS
$MAVEN_DEPLOY_OPTS
-P GPGsigning -Dgpg.keyname="${GPG_KEYNAME}" -Dgpg.passphrase="${GPG_PASSPHRASE}"
cyclonedx:makeBom
deploy

stages:
- build
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## 5.4.0
- DIN Norm 91379 Erweiterung des Charpicker um weitere Sonderzeichen
- `ISY-391`: SBOM-Erstellung und GPG-Signierung beim Deploy hinzugefügt

## 5.3.4

Expand Down