renuo-cli 3.1.2 → 3.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b15431d56265376a769e662fd9b467c0c1b0753a5b27e4429821ec37e87f9e01
4
- data.tar.gz: 29a10806d01da5cbb8b2a2946fdeb5226fd3cdafc36c4bec15cf0cc20a6f88ec
3
+ metadata.gz: ead0f65f1f88573f75dedea0ce0ddaadaf66dece54560b39e6327106791cb808
4
+ data.tar.gz: 5a456baefb20e67985894de8e4e3b6c207b162d3be51f79b8c1582ab2c89d1d8
5
5
  SHA512:
6
- metadata.gz: 69a90927c91e4b854c7cf2d9ed57ac4d3a27573c446c9232d951815e36e66cdc46cbdeecf299579837cedaa1536ab9190610645e747626628d713cb61af0fc23
7
- data.tar.gz: ce3f379d8e365792f82024d3aa12a1d13ed697ffd85b50ff41bc10f112ee230a3c2c78991fb9b484faaf716906624f2786114b035c63d0f3cb9ca9598c887382
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 `master`
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 master
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 = 'admin@renuo.ch'.freeze
2
+ ADMIN_EMAIL = 'operations@renuo.ch'.freeze
3
3
 
4
4
  def initialize; end
5
5
 
6
- def run(*args)
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 versioin: #{@version}\""
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 = "git@github.com:#{@project_name}.git"
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: ubuntu1804
6
+ os_image: ubuntu2004
7
7
 
8
8
  blocks:
9
9
  - name: <%= environment %>-deploy
10
10
  task:
11
11
  secrets:
12
- - name: heroku-deploy
12
+ - name: heroku-http
13
13
  env_vars:
14
- - name: HEROKU_REMOTE
15
- value: https://git.heroku.com/<%= project_name %>-<%= environment %>.git
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
- - ssh-keyscan -H heroku.com >> ~/.ssh/known_hosts
21
- - chmod 600 ~/.ssh/id_rsa_semaphore_heroku
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: ubuntu1804
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
@@ -1,6 +1,6 @@
1
1
  module Renuo
2
2
  module Cli
3
- VERSION = '3.1.2'.freeze
3
+ VERSION = '3.1.5'.freeze
4
4
  NAME = 'renuo-cli'.freeze
5
5
  end
6
6
  end
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 = <<-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.2
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-04-12 00:00:00.000000000 Z
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.2.32
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: []