#!/bin/bash

source $(dirname $0)/ci-helpers.sh

set -ex

#this installs anything that the goCD agents need to run our scripts
../scripts/install_prerequisites.sh

./bin/build-aws ${BOSH_LITE_AMI} ${CF_RELEASE_VERSION} ${GO_PIPELINE_COUNTER} | tee output

ami=`tail -2 output | grep -o "ami-.*"`
#ami=`tail -2 output | grep -Po "ami-.*"`

sleep 60
aws ec2 modify-image-attribute --image-id $ami --launch-permission "{\"Add\": [{\"Group\":\"all\"}]}"
upload_box aws ${GO_PIPELINE_COUNTER}


#!/bin/bash

source $(dirname $0)/ci-helpers.sh

set -ex

#this installs anything that the goCD agents need to run our scripts
scripts/install_prerequisites.sh

./bin/build-aws ${BOSH_LITE_AMI} ${CF_RELEASE_VERSION} ${GO_PIPELINE_COUNTER} | tee output

ami=`tail -2 output | grep -o "ami-.*"`
#ami=`tail -2 output | grep -Po "ami-.*"`

sleep 60
aws ec2 modify-image-attribute --image-id $ami --launch-permission "{\"Add\": [{\"Group\":\"all\"}]}"
upload_box aws ${GO_PIPELINE_COUNTER}


Add script with correct path
Add script with correct path

Signed-off-by: Graeme Davison <6fb82075fb0ad59005c9ef465a20a71e9744d1a2@pivotal.io>
