renuo-cli 3.1.4 → 3.1.6

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: a3ebfe107422fcb325aaeaeb8ee0bb8a7d7180c2ff9bce010c623bc680c8606c
4
- data.tar.gz: b015920000dd363cc2957677694fff8efe041a6068f38594fb545281a2e1ae14
3
+ metadata.gz: e8f1d92e8c0fa0ec9f455becc6d582050953ff06995b1449f989c3b0e2e5e229
4
+ data.tar.gz: '0597a50d4d57f28c638227d424012a424149721582ac36bb862a733e7e9c584f'
5
5
  SHA512:
6
- metadata.gz: b697804eceb13dfe6a27e3135c3f8a9c18405f7af3b98cd02e5f7ec029a37134e1f7b0a781697e8970a00cf9d93599c4c6d29080ff09c4e9b9fb8bbf876b1121
7
- data.tar.gz: 5fd0187df881a7dbfb3dfbd2b6d4e56473905f9ad3f7c56c775b1b765ac1b749446b991e0de97e1a4f6367e04187767d4e2a82990b989b5f9222d7f5d191b98d
6
+ metadata.gz: f77187004b463350afd60609871843362a2218152c20fa57c146af4d1a6795472e226376b4d933bc25c81a4e87c563459763e83bf825d40f15d6e9f182c1795c
7
+ data.tar.gz: 02736c206c176355e8e7ae1775cf75208445a1583011f8764acee31b05b26fffda5fc53a689839bf3369fa9aa894ca85ad8a21b2624bd94676b8d29cb7ea5cfc
@@ -30,7 +30,7 @@ class CreateHerokuApp
30
30
  end
31
31
 
32
32
  def print_pipelines_commands(project_name)
33
- say "heroku pipelines:create #{project_name} --app #{project_name}-#{MAIN} -s production"
33
+ say "heroku pipelines:create #{project_name} --app #{project_name}-#{MAIN} -s production -t staff"
34
34
  say "heroku pipelines:add #{project_name} --app #{project_name}-#{DEVELOP} -s staging"
35
35
  say "heroku pipelines:add #{project_name} --app #{project_name}-#{TESTING} -s staging"
36
36
  say "\n"
@@ -143,7 +143,7 @@ class ReleaseProject
143
143
  [
144
144
  "GIT_MERGE_AUTOEDIT=no git checkout #{main_branch}",
145
145
  "git merge #{develop_branch} --no-edit",
146
- "git tag -a #{@version} -m \"Release with versioin: #{@version}\""
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 = "https://github.com/#{@project_name}.git"
193
+ remote_repo = "git@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.4'.freeze
3
+ VERSION = '3.1.6'.freeze
4
4
  NAME = 'renuo-cli'.freeze
5
5
  end
6
6
  end
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
4
+ version: 3.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Renuo AG
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-16 00:00:00.000000000 Z
11
+ date: 2022-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activeresource