Skip to content
This repository has been archived by the owner on Aug 20, 2019. It is now read-only.

Commit

Permalink
Migrate to Vagrant Cloud. (#426)
Browse files Browse the repository at this point in the history
  • Loading branch information
thom8 authored Jul 10, 2017
1 parent 6d855a6 commit f4101f0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
5 changes: 3 additions & 2 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ deployment:
packer push
-token=$ATLAS_TOKEN
-name="beet/dev"
-var "atlas_build_name=dev"
-var "cloud_token=$VAGRANT_CLOUD_TOKEN"
-var "beet_repo=$CIRCLE_REPOSITORY_URL.git"
-var "box_version=0.6.$CIRCLE_BUILD_NUM"
/beetbox/provisioning/ubuntu-16.04.2.json
Expand All @@ -46,7 +46,8 @@ deployment:
packer push
-token=$ATLAS_TOKEN
-name="beet/box"
-var "atlas_build_name=box"
-var "cloud_build_name=box"
-var "cloud_token=$VAGRANT_CLOUD_TOKEN"
-var "beet_repo=$CIRCLE_REPOSITORY_URL.git"
-var "beet_version=$CIRCLE_TAG"
-var "box_version=$CIRCLE_TAG"
Expand Down
21 changes: 9 additions & 12 deletions provisioning/ubuntu-16.04.2.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"variables": {
"atlas_build_name": "dev",
"atlas_username": "beet",
"cloud_build_name": "dev",
"cloud_username": "beet",
"cloud_token": "",
"beet_repo": "https://github.com/beetboxvm/beetbox.git",
"box_version": "0.0.1",
"beet_version": "master",
Expand Down Expand Up @@ -46,7 +47,7 @@
"iso_checksum": "737ae7041212c628de5751d15c3016058b0e833fdc32e7420209b76ca3d0a535",
"iso_checksum_type": "sha256",
"iso_url": "http://releases.ubuntu.com/16.04/ubuntu-16.04.2-server-amd64.iso",
"output_directory": "output-{{ user `atlas_build_name` }}-virtualbox-iso",
"output_directory": "output-{{ user `cloud_build_name` }}-virtualbox-iso",
"ssh_username": "{{ user `ssh_user` }}",
"ssh_password": "{{ user `ssh_pass` }}",
"ssh_port": 22,
Expand Down Expand Up @@ -97,17 +98,13 @@
{
"type": "vagrant",
"compression_level": 9,
"output": "{{ user `atlas_username` }}-{{ user `atlas_build_name` }}-{{ .Provider }}.box"
"output": "{{ user `cloud_username` }}-{{ user `cloud_build_name` }}-{{ .Provider }}.box"
},
{
"type": "atlas",
"artifact": "{{ user `atlas_username` }}/{{ user `atlas_build_name` }}",
"artifact_type": "vagrant.box",
"metadata": {
"provider": "virtualbox",
"created_at": "{{ timestamp }}",
"version": "{{ user `box_version` }}"
}
"type": "vagrant-cloud",
"box_tag": "{{ user `cloud_username` }}/{{ user `cloud_build_name` }}",
"access_token": "{{user `cloud_token`}}",
"version": "{{user `box_version`}}"
}
]
]
Expand Down

0 comments on commit f4101f0

Please sign in to comment.