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

GPG key import using --batch

parent 03dc333d
......@@ -3,8 +3,8 @@ stages:
- deploy
run tests in branches:
stage: compile
image: maven:3-jdk-8
stage: compile
image: maven:3-jdk-8
script:
- MAVEN_OPTS="${MAVEN_OPTS} -Dorg.slf4j.simpleLogger.defaultLogLevel=warn" mvn test -B
except:
......@@ -12,22 +12,24 @@ run tests in branches:
- /^application\-blocks\-/
publish snapshot artifacts:
stage: deploy
image: maven:3-jdk-8
script:
- echo "${GPG_KEY_SECRET}" | gpg --allow-secret-key-import --import
stage: deploy
image: maven:3-jdk-8
before_script:
- echo "${GPG_KEY_SECRET}" | gpg --batch --import
- gpg --list-keys
script:
- mvn clean deploy --settings .ci-maven-settings.xml -B -U
only:
- master
publish artifacts on central:
stage: deploy
image: maven:3-jdk-8
stage: deploy
image: maven:3-jdk-8
before_script:
- echo "${GPG_KEY_SECRET}" | gpg --batch --import
- gpg --list-keys
script:
- 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
only:
- /^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