renuo-cli 3.1.2 → 3.1.5
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 +4 -4
- data/README.md +2 -2
- data/lib/renuo/cli/app/create_heroku_app.rb +2 -2
- data/lib/renuo/cli/app/release_project.rb +3 -3
- data/lib/renuo/cli/app/templates/semaphore/semaphore-deploy.yml.erb +6 -10
- data/lib/renuo/cli/app/templates/semaphore/semaphore.yml.erb +2 -1
- data/lib/renuo/cli/version.rb +1 -1
- data/lib/renuo/cli.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ead0f65f1f88573f75dedea0ce0ddaadaf66dece54560b39e6327106791cb808
|
|
4
|
+
data.tar.gz: 5a456baefb20e67985894de8e4e3b6c207b162d3be51f79b8c1582ab2c89d1d8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 13960ae1c3482a59ca32102d36ba6237e91c789f658190af031b41f5d16af3d89e8c675f445e59fd4d5edde5da7ac4a9784a0768bedea95f3cb6dd1bb042a905
|
|
7
|
+
data.tar.gz: 34fa9271d4164d5f9e5ee7db8a0e6b1afcf97c05e497560d1663bb937009bf68a85f62d7e7c65e2bb9da2e00532e57091f550ad148365fe9abfa51f6046f0454
|
data/README.md
CHANGED
|
@@ -32,11 +32,11 @@ To release a new version, update the version number in `version.rb`, and then ru
|
|
|
32
32
|
|
|
33
33
|
## Release
|
|
34
34
|
|
|
35
|
-
* Bump the version number in `lib/renuo/cli/version.rb` and commit to `
|
|
35
|
+
* Bump the version number in `lib/renuo/cli/version.rb` and commit to `main`
|
|
36
36
|
|
|
37
37
|
### Automatic
|
|
38
38
|
|
|
39
|
-
* Deploy through Semaphore console by starting a promotion to
|
|
39
|
+
* Deploy through Semaphore console by starting a promotion to main
|
|
40
40
|
|
|
41
41
|
### Manual
|
|
42
42
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
class CreateHerokuApp
|
|
2
|
-
ADMIN_EMAIL = '
|
|
2
|
+
ADMIN_EMAIL = 'operations@renuo.ch'.freeze
|
|
3
3
|
|
|
4
4
|
def initialize; end
|
|
5
5
|
|
|
6
|
-
def run(
|
|
6
|
+
def run(args)
|
|
7
7
|
project_name = args[0]
|
|
8
8
|
abort('>> Project name must be between 2 and 22 characters.') unless project_name&.length&.between?(2, 22)
|
|
9
9
|
emails = FetchEmails.new.fetch_emails
|
|
@@ -142,8 +142,8 @@ class ReleaseProject
|
|
|
142
142
|
cmd_in_folder(
|
|
143
143
|
[
|
|
144
144
|
"GIT_MERGE_AUTOEDIT=no git checkout #{main_branch}",
|
|
145
|
-
"git merge #{develop_branch}",
|
|
146
|
-
"git tag -a #{@version} -m \"Release with
|
|
145
|
+
"git merge #{develop_branch} --no-edit",
|
|
146
|
+
"git tag -a #{@version} -m \"Release with version: #{@version}\""
|
|
147
147
|
].join(' && ')
|
|
148
148
|
)
|
|
149
149
|
)
|
|
@@ -190,7 +190,7 @@ class ReleaseProject
|
|
|
190
190
|
end
|
|
191
191
|
|
|
192
192
|
def main_branch
|
|
193
|
-
remote_repo = "
|
|
193
|
+
remote_repo = "https://github.com/#{@project_name}.git"
|
|
194
194
|
@main_branch ||= `git ls-remote --heads #{remote_repo} main`.empty? ? 'master' : 'main'
|
|
195
195
|
end
|
|
196
196
|
|
|
@@ -3,24 +3,20 @@ name: <%= environment %>-deploy
|
|
|
3
3
|
agent:
|
|
4
4
|
machine:
|
|
5
5
|
type: e1-standard-2
|
|
6
|
-
os_image:
|
|
6
|
+
os_image: ubuntu2004
|
|
7
7
|
|
|
8
8
|
blocks:
|
|
9
9
|
- name: <%= environment %>-deploy
|
|
10
10
|
task:
|
|
11
11
|
secrets:
|
|
12
|
-
- name: heroku-
|
|
12
|
+
- name: heroku-http
|
|
13
13
|
env_vars:
|
|
14
|
-
- name:
|
|
15
|
-
value:
|
|
14
|
+
- name: HEROKU_APP_NAME
|
|
15
|
+
value: <%= project_name %>-<%= environment %>
|
|
16
16
|
jobs:
|
|
17
17
|
- name: <%= environment %>-deploy
|
|
18
18
|
commands:
|
|
19
19
|
- checkout --use-cache
|
|
20
|
-
-
|
|
21
|
-
-
|
|
22
|
-
- ssh-add ~/.ssh/id_rsa_semaphore_heroku
|
|
23
|
-
- git config --global url.ssh://git@heroku.com/.insteadOf https://git.heroku.com/
|
|
24
|
-
- git remote add heroku $HEROKU_REMOTE
|
|
25
|
-
- git push heroku -f $SEMAPHORE_GIT_BRANCH:main
|
|
20
|
+
- heroku git:remote -a $HEROKU_APP_NAME
|
|
21
|
+
- git push heroku -f $SEMAPHORE_GIT_BRANCH:master
|
|
26
22
|
- if heroku run -x rails db:migrate; then heroku dyno:restart; else heroku rollback; exit -1; fi
|
|
@@ -3,7 +3,7 @@ name: <%= project_name %>
|
|
|
3
3
|
agent:
|
|
4
4
|
machine:
|
|
5
5
|
type: e1-standard-2
|
|
6
|
-
os_image:
|
|
6
|
+
os_image: ubuntu2004
|
|
7
7
|
auto_cancel:
|
|
8
8
|
running:
|
|
9
9
|
when: "true"
|
|
@@ -87,6 +87,7 @@ blocks:
|
|
|
87
87
|
- nvm install
|
|
88
88
|
- bin/yarn install --cache-folder ~/.cache/yarn
|
|
89
89
|
- sem-service start postgres
|
|
90
|
+
- cp config/application.example.yml config/application.yml
|
|
90
91
|
- bundle exec rails db:create db:schema:load
|
|
91
92
|
jobs:
|
|
92
93
|
- name: tests
|
data/lib/renuo/cli/version.rb
CHANGED
data/lib/renuo/cli.rb
CHANGED
|
@@ -111,7 +111,7 @@ module Renuo
|
|
|
111
111
|
command 'create-aws-project' do |c|
|
|
112
112
|
c.syntax = 'renuo create-aws-project'
|
|
113
113
|
c.summary = 'Generates necessary commands for our project setup on AWS incl. necessary installations.'
|
|
114
|
-
c.description =
|
|
114
|
+
c.description = <<~DESCRIPTION
|
|
115
115
|
This creates commands for creating AWS users, buckets an versioning policies and CloudFront.
|
|
116
116
|
It also guides you to set up the necessary environment.
|
|
117
117
|
|
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: 3.1.
|
|
4
|
+
version: 3.1.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Renuo AG
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-07-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activeresource
|
|
@@ -363,7 +363,7 @@ homepage: https://github.com/renuo/renuo-cli
|
|
|
363
363
|
licenses:
|
|
364
364
|
- MIT
|
|
365
365
|
metadata: {}
|
|
366
|
-
post_install_message:
|
|
366
|
+
post_install_message:
|
|
367
367
|
rdoc_options: []
|
|
368
368
|
require_paths:
|
|
369
369
|
- lib
|
|
@@ -378,8 +378,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
378
378
|
- !ruby/object:Gem::Version
|
|
379
379
|
version: '0'
|
|
380
380
|
requirements: []
|
|
381
|
-
rubygems_version: 3.
|
|
382
|
-
signing_key:
|
|
381
|
+
rubygems_version: 3.1.6
|
|
382
|
+
signing_key:
|
|
383
383
|
specification_version: 4
|
|
384
384
|
summary: The Renuo CLI automates some common workflows.
|
|
385
385
|
test_files: []
|