github.com/dcarley/cf-cli@v6.24.1-0.20170220111324-4225ff346898+incompatible/ci/cli-release/tasks/sign-redhat-installers.yml (about) 1 --- 2 platform: linux 3 4 image: docker:///cloudfoundry/cli-ci 5 6 params: 7 GPG_KEY_LOCATION: 8 9 inputs: 10 - name: certificates 11 - name: cli 12 - name: edge-redhat-installer-32 13 - name: edge-redhat-installer-64 14 15 outputs: 16 - name: signed-redhat-installer 17 18 run: 19 path: bash 20 args: 21 - -c 22 - | 23 set -ex 24 cat<<EOF >sign-rpm 25 #!/usr/bin/expect -f 26 spawn rpmsign --addsign {*}\$argv 27 expect -exact "Enter pass phrase: " 28 send -- "\r" 29 expect eof 30 EOF 31 chmod 700 sign-rpm 32 33 VERSION=$(cat cli/ci/VERSION) 34 35 cat<< EOF >~/.rpmmacros 36 %_gpg_name CF CLI Team <cf-cli-eng@pivotal.io> 37 EOF 38 39 mkdir gpg-dir 40 export GNUPGHOME=$PWD/gpg-dir 41 chmod 700 $GNUPGHOME 42 trap "rm -rf $GNUPGHOME" 0 43 44 gpg --import certificates/$GPG_KEY_LOCATION 45 46 ./sign-rpm edge-redhat-installer-32/cf-cli-installer_edge_i686.rpm 47 ./sign-rpm edge-redhat-installer-64/cf-cli-installer_edge_x86-64.rpm 48 49 mv edge-redhat-installer-32/cf-cli-installer_edge_i686.rpm signed-redhat-installer/cf-cli-installer_${VERSION}_i686.rpm 50 mv edge-redhat-installer-64/cf-cli-installer_edge_x86-64.rpm signed-redhat-installer/cf-cli-installer_${VERSION}_x86-64.rpm