-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
27 lines (22 loc) · 943 Bytes
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
machine:
environment:
IMPORT_PATH: "github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME"
PKR_VERSION: 0.10.1
PKR_URL: https://releases.hashicorp.com/packer/${PKR_VERSION}/packer_${PKR_VERSION}_linux_amd64.zip
dependencies:
pre:
- go get github.com/tools/godep
override:
- mkdir -p "/home/ubuntu/.go_workspace/src/$IMPORT_PATH"
- rsync -azC --delete ./ "/home/ubuntu/.go_workspace/src/$IMPORT_PATH/"
- cd /home/ubuntu/.go_workspace/src/$IMPORT_PATH && godep go install
test:
pre:
- "[[ -f \"${HOME}/bin/packer\" ]] || (wget -O \"/tmp/pkr.zip\" \"${PKR_URL}\" && unzip -o -d \"${HOME}/bin\" \"/tmp/pkr.zip\")"
- cp /home/ubuntu/.go_workspace/bin/packer-post-processor-vagrant-s3 ${HOME}/bin
- packer version
override:
- cd uat && packer build -var version=${CIRCLE_BUILD_NUM} uat.json
general:
artifacts:
- /home/ubuntu/.go_workspace/bin/packer-post-processor-vagrant-s3