Files

27 lines
828 B
Ruby

# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION ||= "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.synced_folder ".", "/vagrant"
# Create a box with the latest version available
config.vm.define "monicahq-latest", primary: true do |monicahq|
monicahq.vm.box = "ubuntu/bionic64"
monicahq.vm.hostname = "monica"
monicahq.vm.boot_timeout = 180
monicahq.vm.provision "shell", path: "install-monica.sh", keep_color: true
end
# Create a box with the specific version tag
config.vm.define "monicahq-stable" do |monicahq|
monicahq.vm.box = "ubuntu/bionic64"
monicahq.vm.hostname = "monica"
monicahq.vm.boot_timeout = 180
monicahq.vm.provision "shell", path: "install-monica.sh", keep_color: true, env: {"GIT_TAG" => "#{ENV['GIT_TAG']}"}
end
end