Start using centos7 instead of centos-minimal
[releng.git] / utils / test-sign-artifact.sh
1 #!/bin/bash
2
3 export PATH=$PATH:/usr/local/bin/
4
5 # clone releng repository
6 echo "Cloning releng repository..."
7 [ -d releng ] && rm -rf releng
8 git clone https://gerrit.opnfv.org/gerrit/releng $WORKSPACE/releng/ &> /dev/null
9 #this is where we import the siging key
10 if [ -f $WORKSPACE/releng/utils/gpg_import_key.sh ]; then 
11   source $WORKSPACE/releng/utils/gpg_import_key.sh
12 fi
13
14 artifact="foo"
15 echo foo > foo
16
17 testsign () {
18   echo "Signing artifact: ${artifact}"
19   gpg2 -vvv --batch \
20     --default-key opnfv-helpdesk@rt.linuxfoundation.org  \
21     --passphrase besteffort \
22     --detach-sig $artifact
23 }
24
25 testsign
26