Created
April 6, 2016 20:50
-
-
Save swade1987/5698f4b7bd5c4311aa8a9b7f7cc206ea to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ## Execute the CI task from the Rakefile | |
| #sudo $(which chef) exec rake ci | |
| ## Obtain the source AMI to use for our Packer build. | |
| base_ami_id = $(aws ec2 describe-images --filters Name=tag-key,Values=ami Name=tag-value,Values=aws-ubuntu-base --output text --query 'Images[0].ImageId') | |
| echo $base_ami_id | |
| ## Build an AMI for this cookbook | |
| $(which chef) exec rake packer[$base_ami_id] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ./build.sh: line 7: base_ami_id: command not found |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment