diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 564e542..45000a3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -20,7 +20,7 @@ before_script: tests: stage: test - image: golang:latest + image: golang:1.8 services: - thethingsnetwork/rabbitmq - redis @@ -65,8 +65,11 @@ sign: script: - pushd release - shasum -a 256 $(ls) > checksums + - mkdir ~/.gnupg && chmod 700 ~/.gnupg + - echo -e "use-agent\npinentry-mode loopback" > ~/.gnupg/gpg.conf + - echo "allow-loopback-pinentry" > ~/.gnupg/gpg-agent.conf - gpg --no-tty --batch --import /gpg/signing.ci.gpg-key - - gpg --no-tty --batch --no-use-agent --passphrase $GPG_PASSPHRASE --detach-sign checksums + - echo $GPG_PASSPHRASE | gpg --batch --no-tty --yes --passphrase-fd 0 --detach-sign checksums - popd artifacts: paths: