renuo-cli 3.1.4 → 3.1.6
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/lib/renuo/cli/app/create_heroku_app.rb +1 -1
- data/lib/renuo/cli/app/release_project.rb +2 -2
- 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
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e8f1d92e8c0fa0ec9f455becc6d582050953ff06995b1449f989c3b0e2e5e229
|
|
4
|
+
data.tar.gz: '0597a50d4d57f28c638227d424012a424149721582ac36bb862a733e7e9c584f'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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 = "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:
|
|
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
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.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-
|
|
11
|
+
date: 2022-09-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activeresource
|