renuo-cli 1.7.1 → 1.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.semaphore/master-deploy.yml +19 -0
- data/.semaphore/semaphore.yml +34 -0
- data/README.md +10 -15
- data/lib/renuo/cli/app/configure_semaphore.rb +5 -0
- data/lib/renuo/cli/app/templates/semaphore.yml.erb +3 -0
- data/lib/renuo/cli/version.rb +1 -1
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: e4c4aa2edb020c6ac6c4c454d5e6f7818547d747
|
4
|
+
data.tar.gz: 5b7d8a34f2e3319a7e51e467eabaafb9cf39fbd8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ead9a79d1de88514dba17d43e95e1adcc2e28f59959cd04314966e47770d8a105b6b8b32db6e0dfcd0c79c763ea17a12f0a9a29c874c4a4ccde355f8859c4b3
|
7
|
+
data.tar.gz: b1634389fe6c29a4c7e21e8ffa928cc29980fc5fb5eb53bf5b9190b70cf741b2ba95871d3fef75c4c5e839a606131b11fd6b2fdec9c5efaaf4876c917c60ad4c
|
@@ -0,0 +1,19 @@
|
|
1
|
+
version: v1.0
|
2
|
+
name: master-deploy
|
3
|
+
agent:
|
4
|
+
machine:
|
5
|
+
type: e1-standard-2
|
6
|
+
os_image: ubuntu1804
|
7
|
+
|
8
|
+
blocks:
|
9
|
+
- name: master-deploy
|
10
|
+
task:
|
11
|
+
secrets:
|
12
|
+
- name: rubygems-deploy
|
13
|
+
jobs:
|
14
|
+
- name: master-deploy
|
15
|
+
commands:
|
16
|
+
- checkout --use-cache
|
17
|
+
- gem build renuo-cli
|
18
|
+
- chmod 0600 ~/.gem/credentials
|
19
|
+
- gem push renuo-cli-*.gem
|
@@ -0,0 +1,34 @@
|
|
1
|
+
version: "v1.0"
|
2
|
+
name: renuo-cli
|
3
|
+
agent:
|
4
|
+
machine:
|
5
|
+
type: e1-standard-2
|
6
|
+
os_image: ubuntu1804
|
7
|
+
auto_cancel:
|
8
|
+
running:
|
9
|
+
when: "true"
|
10
|
+
|
11
|
+
blocks:
|
12
|
+
- name: tests
|
13
|
+
execution_time_limit:
|
14
|
+
minutes: 10
|
15
|
+
task:
|
16
|
+
secrets:
|
17
|
+
- name: renuo-cli
|
18
|
+
env_vars:
|
19
|
+
- name: RAILS_ENV
|
20
|
+
value: test
|
21
|
+
prologue:
|
22
|
+
commands:
|
23
|
+
- checkout --use-cache
|
24
|
+
- cache restore
|
25
|
+
- gem update bundler
|
26
|
+
- bundle install -j 4 --path vendor/bundle
|
27
|
+
- cache store
|
28
|
+
jobs:
|
29
|
+
- name: tests
|
30
|
+
commands:
|
31
|
+
- bin/check
|
32
|
+
promotions:
|
33
|
+
- name: master
|
34
|
+
pipeline_file: master-deploy.yml
|
data/README.md
CHANGED
@@ -1,9 +1,6 @@
|
|
1
|
-
|
2
|
-
[](https://codeclimate.com/github/renuo/renuo-cli)
|
1
|
+
# Renuo CLI
|
3
2
|
|
4
|
-
|
5
|
-
|
6
|
-
The Renuo command line. Used for various (internal) stuff.
|
3
|
+
The [Renuo](http://renuo.ch) command line. Used for various Renuo tasks
|
7
4
|
|
8
5
|
## Installation
|
9
6
|
|
@@ -35,18 +32,17 @@ To release a new version, update the version number in `version.rb`, and then ru
|
|
35
32
|
|
36
33
|
## Release
|
37
34
|
|
38
|
-
|
35
|
+
* Bump the version number in `lib/renuo/cli/version.rb` and commit to `master`
|
36
|
+
|
37
|
+
### Automatic
|
38
|
+
|
39
|
+
* Deploy through Semaphore console by starting a promotion to master
|
40
|
+
|
41
|
+
### Manual
|
39
42
|
|
40
43
|
```sh
|
41
|
-
git flow release start [.....]
|
42
|
-
# adjust version.rb
|
43
|
-
bundle install
|
44
|
-
git commit -av
|
45
|
-
git flow release finish [.....]
|
46
|
-
git push origin develop:develop
|
47
|
-
git push origin master:master --tags
|
48
44
|
gem build renuo-cli.gemspec
|
49
|
-
gem push renuo-cli
|
45
|
+
gem push renuo-cli-*.gem
|
50
46
|
```
|
51
47
|
|
52
48
|
## Contributing
|
@@ -58,4 +54,3 @@ the [Contributor Covenant](contributor-covenant.org) code of conduct.
|
|
58
54
|
## License
|
59
55
|
|
60
56
|
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
61
|
-
|
@@ -17,6 +17,7 @@ class ConfigureSemaphore
|
|
17
17
|
write_or_warn(".semaphore/#{environment}-deploy.yml", render('templates/semaphore-deploy.yml.erb'))
|
18
18
|
end
|
19
19
|
create_semaphore_notification
|
20
|
+
create_semaphore_secrets
|
20
21
|
end
|
21
22
|
|
22
23
|
private
|
@@ -35,6 +36,10 @@ class ConfigureSemaphore
|
|
35
36
|
'--slack-endpoint "https://hooks.slack.com/services/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"')
|
36
37
|
end
|
37
38
|
|
39
|
+
def create_semaphore_secrets
|
40
|
+
system("sem create secret #{project_name}")
|
41
|
+
end
|
42
|
+
|
38
43
|
def render(template_file)
|
39
44
|
file_path = File.join(File.dirname(__FILE__), template_file)
|
40
45
|
semaphore_template = File.read(file_path)
|
@@ -23,6 +23,7 @@ blocks:
|
|
23
23
|
- cache restore nvm-$SEMAPHORE_GIT_BRANCH-$(checksum Gemfile.lock),nvm-$SEMAPHORE_GIT_BRANCH,nvm-develop,nvm-master
|
24
24
|
- cache restore gems-$SEMAPHORE_GIT_BRANCH-$(checksum Gemfile.lock),gems-$SEMAPHORE_GIT_BRANCH,gems-develop,gems-master
|
25
25
|
- cache restore yarn-cache-$SEMAPHORE_GIT_BRANCH-$(checksum Gemfile.lock),yarn-cache-$SEMAPHORE_GIT_BRANCH,yarn-cache-develop,yarn-cache-master
|
26
|
+
- cache restore node-modules-$SEMAPHORE_GIT_BRANCH-$(checksum yarn.lock),node-modules-$SEMAPHORE_GIT_BRANCH,node-modules-develop,node-modules-master
|
26
27
|
- bundle install --deployment -j 4 --path vendor/bundle
|
27
28
|
- nvm install
|
28
29
|
- bin/yarn install --cache-folder ~/.cache/yarn
|
@@ -45,7 +46,9 @@ blocks:
|
|
45
46
|
- cache restore nvm-$SEMAPHORE_GIT_BRANCH-$(checksum Gemfile.lock),nvm-$SEMAPHORE_GIT_BRANCH,nvm-develop,nvm-master
|
46
47
|
- cache restore gems-$SEMAPHORE_GIT_BRANCH-$(checksum Gemfile.lock),gems-$SEMAPHORE_GIT_BRANCH,gems-develop,gems-master
|
47
48
|
- cache restore yarn-cache-$SEMAPHORE_GIT_BRANCH-$(checksum Gemfile.lock),yarn-cache-$SEMAPHORE_GIT_BRANCH,yarn-cache-develop,yarn-cache-master
|
49
|
+
- cache restore node-modules-$SEMAPHORE_GIT_BRANCH-$(checksum yarn.lock),node-modules-$SEMAPHORE_GIT_BRANCH,node-modules-develop,node-modules-master
|
48
50
|
- bundle install --deployment --path vendor/bundle
|
51
|
+
- bin/yarn install --cache-folder ~/.cache/yarn
|
49
52
|
- sem-service start postgres
|
50
53
|
- bundle exec rails db:create db:schema:load
|
51
54
|
jobs:
|
data/lib/renuo/cli/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: renuo-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Renuo AG
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activeresource
|
@@ -291,6 +291,8 @@ files:
|
|
291
291
|
- ".rspec"
|
292
292
|
- ".rubocop.yml"
|
293
293
|
- ".ruby-version"
|
294
|
+
- ".semaphore/master-deploy.yml"
|
295
|
+
- ".semaphore/semaphore.yml"
|
294
296
|
- CODE_OF_CONDUCT.md
|
295
297
|
- Gemfile
|
296
298
|
- LICENSE.txt
|
@@ -358,7 +360,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
358
360
|
- !ruby/object:Gem::Version
|
359
361
|
version: '0'
|
360
362
|
requirements: []
|
361
|
-
|
363
|
+
rubyforge_project:
|
364
|
+
rubygems_version: 2.6.14
|
362
365
|
signing_key:
|
363
366
|
specification_version: 4
|
364
367
|
summary: The Renuo CLI automates some common workflows.
|