Commit 39b21844 authored by Lyudmila Huzenko's avatar Lyudmila Huzenko
Browse files

Removing GPG setup from pipeline

parent 700bcdaa
Pipeline #38343 passed with stages
in 92 minutes and 22 seconds
......@@ -228,10 +228,6 @@ deploy_release:
- openstack-runner
script:
- |
sudo ./dev/setup_gpg.sh
exitcode=$?
echo "Setup GPG is successful with $exitcode exit code"
export KIBANA_VERSION=$(echo $CI_COMMIT_TAG | cut -d- -f4)
export KIBANA_PLUGIN_VERSION=$(echo $CI_COMMIT_TAG | cut -d- -f2|cut -d. -f2-)'.0'
echo "KIBANA_PLUGIN_VERSION is $KIBANA_PLUGIN_VERSION and KIBANA_VERSION is $KIBANA_VERSION"
......
#!/bin/bash
echo -n "$PKEY" | base64 --decode > private.key
eval `gpg-agent --daemon --pinentry-program /usr/bin/pinentry-tty --no-grab` #> /dev/null 2>&1
export GPG_TTY=`tty`
export GPG_AGENT_INFO
export PINENTRY_USER_DATA="tty"
echo "pinentry-program /usr/bin/pinentry-tty" >> /root/.gnupg/gpg-agent.conf
echo "allow-loopback-pinentry" >> /root/.gnupg/gpg-agent.conf
echo "default-cache-ttl 34560000" >> /root/.gnupg/gpg-agent.conf
echo "max-cache-ttl 34560000" >> /root/.gnupg/gpg-agent.conf
cat /root/.gnupg/gpg-agent.conf
killall gpg-agent || true
gpgconf --kill gpg-agent || true
eval `gpg-agent --daemon --pinentry-program /usr/bin/pinentry-tty --no-grab`
#> /dev/null 2>&1
export GPG_TTY=`tty`
export GPG_AGENT_INFO
export PINENTRY_USER_DATA="tty"
echo "$PASS" | gpg --pinentry-mode loopback --passphrase-fd 0 --allow-secret-key-import --import private.key || true #> /dev/null 2>&1 || true
expect -c "spawn gpg --edit-key 4A61C8AE trust quit; send \"5\ry\r\"; expect eof" || true #> /dev/null 2>&1 || true
echo "Cache key"
#cache key
echo "123" > cl.txt
echo "PASS is $PASS"
echo "$PASS" | gpg --pinentry-mode loopback --passphrase-fd 0 --textmode --always-trust --default-key 4A61C8AE -z 0 -a --clearsign cl.txt || true #> /dev/null 2>&1
Supports Markdown
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