forked from ibuildthecloud/systemd-docker
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Rakefile
39 lines (31 loc) · 757 Bytes
/
Rakefile
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
28
29
30
31
32
33
34
35
36
37
38
39
require 'timber'
namespace :ops do
TINFOIL_GITHUB = '[email protected]:tinfoil/systemd-docker.git'.freeze
VERSION_FILE_PATH = '.release-version'
if defined?(Timber)
timber_options = {
version_file_path: VERSION_FILE_PATH,
github_repo: TINFOIL_GITHUB
}
if ENV['JIRA_URL'] &&
ENV['JIRA_USERNAME'] &&
ENV['JIRA_PASSWORD']
timber_options[:jira] = {
url: ENV['JIRA_URL'],
username: ENV['JIRA_USERNAME'],
password: ENV['JIRA_PASSWORD']
}
end
Timber::Tasks::Release.new(timber_options)
end
end
task default: [:clean, :deps, :build]
task :clean do
system 'go clean'
end
task :deps do
system 'glide install'
end
task :build do
system './build'
end