build-essential
install_dir
- the installation directory for Go. Defaults to /usr/localurl
- the download URL of the golang package. Will be automatically generated from theversion
attribute and your platform parameters if left empty.owner
- for setting the permissions of the install directorygroup
- for setting the permissions of the install directoryversion
- the Golang version to install
default
- calls the install recipeinstall
- installs Go
Deploy a Go binary from a private source repository
name attribute
: The name of the golang packagerepo_url
: The location of the repositoryrevision
: The revision that should be checked outdeploy_key
: The access key used for SSH accessgodep
: Use godep for building the binary (true/false)install_commands
: The commands to run for the installation
golang_deploy 'github.com/realzeitmedia/myprivaterepo' do
repo_url '[email protected]:realzeitmedia/myprivaterepo'
revision 'master'
deploy_key keys['my_private_key']
godep true
install_commands "make && make install"
end
Author:: Christian Graf
Copyright 2014, realzeit GmbH (http://realzeitmedia.com)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.