samus 2.0.3 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/Dockerfile +3 -1
- data/LICENSE +0 -0
- data/README.md +0 -0
- data/Rakefile +8 -34
- data/bin/samus +0 -0
- data/commands/build/archive-git-full +0 -0
- data/commands/build/archive-git-full.help.md +0 -0
- data/commands/build/archive-tgz +0 -0
- data/commands/build/archive-tgz.help.md +0 -0
- data/commands/build/archive-zip +0 -0
- data/commands/build/archive-zip.help.md +0 -0
- data/commands/build/changelog-parse +12 -13
- data/commands/build/changelog-parse.help.md +0 -0
- data/commands/build/fs-copy +0 -0
- data/commands/build/fs-copy.help.md +0 -0
- data/commands/build/fs-mkdir +0 -0
- data/commands/build/fs-mkdir.help.md +0 -0
- data/commands/build/fs-rmrf +0 -0
- data/commands/build/fs-rmrf.help.md +0 -0
- data/commands/build/fs-sedfiles +0 -0
- data/commands/build/fs-sedfiles.help.md +0 -0
- data/commands/build/gem-build +0 -0
- data/commands/build/gem-build.help.md +0 -0
- data/commands/build/git-archive +0 -0
- data/commands/build/git-archive.help.md +0 -0
- data/commands/build/git-clone +0 -0
- data/commands/build/git-clone.help.md +0 -0
- data/commands/build/git-commit +0 -0
- data/commands/build/git-commit.help.md +0 -0
- data/commands/build/git-merge +0 -1
- data/commands/build/git-merge.help.md +0 -0
- data/commands/build/make-task +0 -0
- data/commands/build/make-task.help.md +0 -0
- data/commands/build/npm-pack +0 -0
- data/commands/build/npm-pack.help.md +0 -0
- data/commands/build/npm-task +0 -0
- data/commands/build/npm-task.help.md +0 -0
- data/commands/build/npm-test +0 -0
- data/commands/build/npm-test.help.md +0 -0
- data/commands/build/rake-task +5 -1
- data/commands/build/rake-task.help.md +0 -0
- data/commands/build/ruby-bundle +3 -0
- data/commands/build/ruby-bundle.help.md +4 -0
- data/commands/build/samus-build +0 -0
- data/commands/build/samus-build.help.md +0 -0
- data/commands/build/support/generate-commit-message.rb +0 -0
- data/commands/publish/cf-invalidate +0 -0
- data/commands/publish/cf-invalidate.help.md +0 -0
- data/commands/publish/gem-push +0 -0
- data/commands/publish/gem-push.help.md +0 -0
- data/commands/publish/git-push +0 -0
- data/commands/publish/git-push.help.md +0 -0
- data/commands/publish/github-release +0 -0
- data/commands/publish/github-release.help.md +0 -0
- data/commands/publish/npm-publish +0 -0
- data/commands/publish/npm-publish.help.md +0 -0
- data/commands/publish/s3-put +0 -0
- data/commands/publish/s3-put.help.md +0 -0
- data/commands/publish/samus-publish +0 -0
- data/commands/publish/samus-publish.help.md +0 -0
- data/entrypoint.sh +3 -0
- data/lib/samus.rb +0 -0
- data/lib/samus/action.rb +0 -0
- data/lib/samus/build_action.rb +0 -0
- data/lib/samus/builder.rb +0 -0
- data/lib/samus/command.rb +0 -0
- data/lib/samus/credentials.rb +0 -0
- data/lib/samus/publish_action.rb +0 -0
- data/lib/samus/publisher.rb +0 -0
- data/lib/samus/version.rb +1 -1
- data/samus.gemspec +0 -0
- data/samus.json +0 -0
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 70687c9193d62210ab399d31952371626c11bc8a4bb0eb166e162dcf6a99e449
|
4
|
+
data.tar.gz: 1db09436786cafd10d6d952078a0221d8ea19263f559add896dc0345a8b8767f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87d0a7f05c3e6b3e4a59d1c4495063a2e57dcb38c12300b47d5e529b4252f985f778117441aeadb950e0af0d1470c2a8ee8217104f7b17fd36b17dd9e45293aa
|
7
|
+
data.tar.gz: 3d827b13ed2fca31fe39e8972d10a3764dc6a6724ab64d177ac421d697c3d0fab2f15ec889f3e7af50c17b216cd55ec56b3cebd7e29a70643b813e21e7d441df
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
# 3.0.0 - March 30th, 2019
|
2
|
+
|
3
|
+
- Add `build/ruby-bundle` command to run Bundler commands like install.
|
4
|
+
- Update `build/rake-task` to `bundle exec` when a Gemfile is present.
|
5
|
+
- Update `lsegal/samus` Docker image to contain Bundler 1.17.2.
|
6
|
+
- Update `build/changelog-parse` to support different formatting.
|
7
|
+
- Update `build/git-merge` to no longer pull from remote since credentials
|
8
|
+
are not supported at build time.
|
9
|
+
|
1
10
|
# 2.0.3 - August 12th, 2018
|
2
11
|
|
3
12
|
- Add `--docker` support to build and publish which runs Samus inside a pre-built
|
data/Dockerfile
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
FROM python:3.7-alpine
|
2
2
|
|
3
|
-
RUN apk add openssh ruby ruby-json nodejs git curl
|
3
|
+
RUN apk add -U --no-cache openssh ruby ruby-json nodejs git curl
|
4
4
|
RUN pip install awscli
|
5
|
+
RUN gem install bundler -v '1.17.3' --no-rdoc --no-ri
|
5
6
|
RUN gem install rake --no-rdoc --no-ri
|
6
7
|
RUN mkdir -p ~/.ssh
|
7
8
|
RUN echo "Host *" > ~/.ssh/config
|
@@ -12,3 +13,4 @@ COPY . /samus
|
|
12
13
|
ENV PATH=$PATH:/samus/bin
|
13
14
|
|
14
15
|
WORKDIR /build
|
16
|
+
ENTRYPOINT [ "/samus/entrypoint.sh" ]
|
data/LICENSE
CHANGED
File without changes
|
data/README.md
CHANGED
File without changes
|
data/Rakefile
CHANGED
@@ -1,43 +1,17 @@
|
|
1
1
|
task default: :build
|
2
2
|
|
3
|
-
|
4
|
-
home
|
5
|
-
id = `docker build -q .`.chomp
|
6
|
-
dirs = [
|
7
|
-
"#{home}/.ssh:/root/.sshkeys",
|
8
|
-
"#{home}/.samus:/root/.samus",
|
9
|
-
"#{home}/.gitconfig:/root/.gitconfig",
|
10
|
-
"#{Dir.pwd}:/app"
|
11
|
-
]
|
12
|
-
cmd = "rake build_from_docker VERSION=#{ENV['VERSION']}"
|
13
|
-
alldirs = dirs.map { |d| "-v \"#{d}\"" }.join(' ')
|
14
|
-
sh "docker run --rm #{alldirs} -w /app -t #{id} #{cmd}"
|
3
|
+
def docker_cmd
|
4
|
+
"docker run --rm -v #{Dir.home}:/root:ro -v #{Dir.pwd}:/build lsegal/samus"
|
15
5
|
end
|
16
6
|
|
17
|
-
task :
|
18
|
-
|
19
|
-
sh 'mkdir -p ~/.ssh && cp -R ~/.sshkeys/* ~/.ssh'
|
20
|
-
sh 'chmod 700 ~/.ssh && chmod 400 ~/.ssh/*'
|
21
|
-
sh "samus build #{version}"
|
7
|
+
task :image do
|
8
|
+
sh "docker build -t lsegal/samus ."
|
22
9
|
end
|
23
10
|
|
24
|
-
task :
|
25
|
-
|
26
|
-
id = `docker build -q .`.chomp
|
27
|
-
dirs = [
|
28
|
-
"#{home}/.ssh:/root/.sshkeys",
|
29
|
-
"#{home}/.samus:/root/.samus",
|
30
|
-
"#{home}/.gitconfig:/root/.gitconfig",
|
31
|
-
"#{Dir.pwd}:/app"
|
32
|
-
]
|
33
|
-
cmd = "rake publish_from_docker FILE=#{ENV['FILE']}"
|
34
|
-
alldirs = dirs.map { |d| "-v \"#{d}\"" }.join(' ')
|
35
|
-
sh "docker run --rm #{alldirs} -w /app -t #{id} #{cmd}"
|
11
|
+
task build: :image do
|
12
|
+
sh "#{docker_cmd} build #{ENV['VERSION']}"
|
36
13
|
end
|
37
14
|
|
38
|
-
task :
|
39
|
-
|
40
|
-
sh 'mkdir -p ~/.ssh && cp -R ~/.sshkeys/* ~/.ssh'
|
41
|
-
sh 'chmod 700 ~/.ssh && chmod 400 ~/.ssh/*'
|
42
|
-
sh "samus publish #{file}"
|
15
|
+
task :publish do
|
16
|
+
sh "#{docker_cmd} publish release-v#{ENV['VERSION']}.tar.gz"
|
43
17
|
end
|
data/bin/samus
CHANGED
File without changes
|
File without changes
|
File without changes
|
data/commands/build/archive-tgz
CHANGED
File without changes
|
File without changes
|
data/commands/build/archive-zip
CHANGED
File without changes
|
File without changes
|
@@ -1,20 +1,19 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
def parse_changelog(changelog)
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
break if collect_started
|
8
|
-
collect_started = true
|
9
|
-
next
|
10
|
-
end
|
11
|
-
|
12
|
-
next if line =~ /^(\S)\1*$/
|
13
|
-
out << line if collect_started
|
14
|
-
end
|
15
|
-
out.join("\n").strip
|
4
|
+
log = File.read(changelog)
|
5
|
+
match = /^#\s*\[?#{ENV["_VERSION"]}\]?\s+-\s+(?<title>.+?)\r?\n(?<body>.*?)\r?\n#/ms.match(log)
|
6
|
+
match ? match["body"] : nil
|
16
7
|
end
|
17
8
|
|
18
9
|
file = ARGV[0]
|
19
10
|
dest = File.join(ENV["__BUILD_DIR"], ENV["_DESTINATION"] || file)
|
20
|
-
|
11
|
+
out = parse_changelog(file)
|
12
|
+
if out
|
13
|
+
puts "Changelog:"
|
14
|
+
puts out
|
15
|
+
File.open(dest, "w") {|f| f.puts(out) }
|
16
|
+
else
|
17
|
+
puts "Failed to find changelog data"
|
18
|
+
exit 1
|
19
|
+
end
|
File without changes
|
data/commands/build/fs-copy
CHANGED
File without changes
|
File without changes
|
data/commands/build/fs-mkdir
CHANGED
File without changes
|
File without changes
|
data/commands/build/fs-rmrf
CHANGED
File without changes
|
File without changes
|
data/commands/build/fs-sedfiles
CHANGED
File without changes
|
File without changes
|
data/commands/build/gem-build
CHANGED
File without changes
|
File without changes
|
data/commands/build/git-archive
CHANGED
File without changes
|
File without changes
|
data/commands/build/git-clone
CHANGED
File without changes
|
File without changes
|
data/commands/build/git-commit
CHANGED
File without changes
|
File without changes
|
data/commands/build/git-merge
CHANGED
File without changes
|
data/commands/build/make-task
CHANGED
File without changes
|
File without changes
|
data/commands/build/npm-pack
CHANGED
File without changes
|
File without changes
|
data/commands/build/npm-task
CHANGED
File without changes
|
File without changes
|
data/commands/build/npm-test
CHANGED
File without changes
|
File without changes
|
data/commands/build/rake-task
CHANGED
File without changes
|
data/commands/build/samus-build
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/commands/publish/gem-push
CHANGED
File without changes
|
File without changes
|
data/commands/publish/git-push
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/commands/publish/s3-put
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/entrypoint.sh
ADDED
data/lib/samus.rb
CHANGED
File without changes
|
data/lib/samus/action.rb
CHANGED
File without changes
|
data/lib/samus/build_action.rb
CHANGED
File without changes
|
data/lib/samus/builder.rb
CHANGED
File without changes
|
data/lib/samus/command.rb
CHANGED
File without changes
|
data/lib/samus/credentials.rb
CHANGED
File without changes
|
data/lib/samus/publish_action.rb
CHANGED
File without changes
|
data/lib/samus/publisher.rb
CHANGED
File without changes
|
data/lib/samus/version.rb
CHANGED
data/samus.gemspec
CHANGED
File without changes
|
data/samus.json
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: samus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Loren Segal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-03-30 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: lsegal@soen.ca
|
@@ -59,6 +59,8 @@ files:
|
|
59
59
|
- commands/build/npm-test.help.md
|
60
60
|
- commands/build/rake-task
|
61
61
|
- commands/build/rake-task.help.md
|
62
|
+
- commands/build/ruby-bundle
|
63
|
+
- commands/build/ruby-bundle.help.md
|
62
64
|
- commands/build/samus-build
|
63
65
|
- commands/build/samus-build.help.md
|
64
66
|
- commands/build/support/generate-commit-message.rb
|
@@ -76,6 +78,7 @@ files:
|
|
76
78
|
- commands/publish/s3-put.help.md
|
77
79
|
- commands/publish/samus-publish
|
78
80
|
- commands/publish/samus-publish.help.md
|
81
|
+
- entrypoint.sh
|
79
82
|
- lib/samus.rb
|
80
83
|
- lib/samus/action.rb
|
81
84
|
- lib/samus/build_action.rb
|