Commit 2906a1d7 authored by Matija Obreza's avatar Matija Obreza
Browse files

GPG key import using --batch

parent 03dc333d
...@@ -3,8 +3,8 @@ stages: ...@@ -3,8 +3,8 @@ stages:
- deploy - deploy
run tests in branches: run tests in branches:
stage: compile stage: compile
image: maven:3-jdk-8 image: maven:3-jdk-8
script: script:
- MAVEN_OPTS="${MAVEN_OPTS} -Dorg.slf4j.simpleLogger.defaultLogLevel=warn" mvn test -B - MAVEN_OPTS="${MAVEN_OPTS} -Dorg.slf4j.simpleLogger.defaultLogLevel=warn" mvn test -B
except: except:
...@@ -12,22 +12,24 @@ run tests in branches: ...@@ -12,22 +12,24 @@ run tests in branches:
- /^application\-blocks\-/ - /^application\-blocks\-/
publish snapshot artifacts: publish snapshot artifacts:
stage: deploy stage: deploy
image: maven:3-jdk-8 image: maven:3-jdk-8
script: before_script:
- echo "${GPG_KEY_SECRET}" | gpg --allow-secret-key-import --import - echo "${GPG_KEY_SECRET}" | gpg --batch --import
- gpg --list-keys - gpg --list-keys
script:
- mvn clean deploy --settings .ci-maven-settings.xml -B -U - mvn clean deploy --settings .ci-maven-settings.xml -B -U
only: only:
- master - master
publish artifacts on central: publish artifacts on central:
stage: deploy stage: deploy
image: maven:3-jdk-8 image: maven:3-jdk-8
before_script:
- echo "${GPG_KEY_SECRET}" | gpg --batch --import
- gpg --list-keys
script: script:
- echo "Using username ${GLIS_USERNAME} for authentication against https://glistest.planttreaty.org" - echo "Using username ${GLIS_USERNAME} for authentication against https://glistest.planttreaty.org"
- echo "${GPG_KEY_SECRET}" | gpg --allow-secret-key-import --import
- gpg --list-keys
- MAVEN_OPTS="${MAVEN_OPTS} -Dorg.slf4j.simpleLogger.defaultLogLevel=warn" mvn -P release clean deploy --settings .ci-maven-settings.xml -B -U - MAVEN_OPTS="${MAVEN_OPTS} -Dorg.slf4j.simpleLogger.defaultLogLevel=warn" mvn -P release clean deploy --settings .ci-maven-settings.xml -B -U
only: only:
- /^application\-blocks\-/ - /^application\-blocks\-/
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment