cqfn / 0capa

GitHub Data Analyzer and Decision Maker
MIT License
4 stars 4 forks source link

deploy to production #9

Closed yegor256 closed 2 years ago

yegor256 commented 2 years ago

@rultor release, tag is 0.0.1

rultor commented 2 years ago

@rultor release, tag is 0.0.1

@yegor256 OK, I will release it now. Please check the progress here

rultor commented 2 years ago

@rultor release, tag is 0.0.1

@yegor256 Oops, I failed. You can see the full log here (spent 8min)

Reading .rultor.yml ...
Reading objects/github.rb ...
Reading .rubocop.yml ...
Reading .gitignore ...
Reading views/error.haml ...
Reading views/layout.haml ...
Reading views/not_found.haml ...
Reading views/index.haml ...
Reading nginx.conf.sigil ...
Reading Gemfile.lock ...
Reading config.ru ...
Reading Procfile ...
Reading deploy.sh ...
Reading version.rb ...
Reading 0capa.rb ...
Reading logo.svg ...
Reading CHECKS ...
+ bundle exec rake
Coverage report generated for Unit Tests to /home/r/repo/coverage. 64 / 119 LOC (53.78%) covered.
Loaded suite /home/r/.ruby/gems/rake-13.0.3/lib/rake/rake_test_loader
Started
\u001b[32;1m.\u001b[0m\u001b[32;1m.\u001b[0m\u001b[32;1m.\u001b[0m\u001b[32;1m.\u001b[0m
Finished in 0.039037656 seconds.
\u001b[32;1m-------------------------------------------------------------------------------\u001b[0m
4 tests, 5 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed
\u001b[32;1m-------------------------------------------------------------------------------\u001b[0m
102.47 tests/s, 128.08 assertions/s
Running RuboCop...
/home/r/.ruby/gems/rubocop-0.69.0/lib/rubocop/config_loader_resolver.rb:75: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/home/r/.ruby/gems/rubocop-0.69.0/lib/rubocop/config_loader_resolver.rb:83: warning: The called method `merge' is defined here
Inspecting 9 files
\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m

9 files inspected, \u001b[32mno offenses\u001b[0m detected
Running xcop...
Inspecting 0 files...

0 files checked, everything looks \u001b[32mpretty\u001b[0m
grep -q -r '2021'     --include '*.rb'     --include '*.txt'     --include 'Rakefile'     .
+ git remote add dokku dokku@dokku.0capa.com:zeropdd
+ rm -rf /home/r/.ssh
+ mkdir /home/r/.ssh
+ mv ../id_rsa ../id_rsa.pub /home/r/.ssh
+ chmod -R 600 /home/r/.ssh/id_rsa /home/r/.ssh/id_rsa.pub
+ echo -e 'Host *\n  StrictHostKeyChecking no\n  UserKnownHostsFile=/dev/null'
+ git fetch
Warning: Permanently added 'github.com,140.82.121.3' (ECDSA) to the list of known hosts.

+ sed -i s/BUILD/0.0.1/g ./version.rb
+ git add ./version.rb
+ git commit -m 'build number set'
[__rultor f4137f7] build number set
 1 file changed, 1 insertion(+), 1 deletion(-)
+ cp ../config.yml config.yml
+ git add config.yml
+ ruby test/test_credentials.rb
\u001b[1mTraceback\u001b[m (most recent call last):
ruby: \u001b[1mNo such file or directory -- test/test_credentials.rb (\u001b[1;4mLoadError\u001b[m\u001b[1m)\u001b[m
container ac96140f69aefa0518856cf7b6c769228df7bc822a49db951251ae0d478b89bb is dead
Mon Nov 29 17:01:24 CET 2021
yegor256 commented 2 years ago

@rultor release, tag is 0.0.1

rultor commented 2 years ago

@rultor release, tag is 0.0.1

@yegor256 OK, I will release it now. Please check the progress here

rultor commented 2 years ago

@rultor release, tag is 0.0.1

@yegor256 Oops, I failed. You can see the full log here (spent 9min)

remote:  !     Deprecated: Usage of DOKKU_APP_LISTENERS within nginx.conf.sigil templates is deprecated in favor of DOKKU_APP_WEB_LISTENERS\u001b[K
remote: \u001b[1G-----> Configuring 0pdd.com...(using app-supplied template)\u001b[K
remote: \u001b[1G-----> Configuring www.0pdd.com...(using app-supplied template)\u001b[K
remote: \u001b[1G-----> Creating https nginx.conf\u001b[K
remote: \u001b[1G       Enabling HSTS\u001b[K
remote: \u001b[1GWriting to /home/dokku/zeropdd/nginx.conf.d/timeout.conf\u001b[K
remote: \u001b[1G-----> Setting proxy timeout to 60s\u001b[K
remote: \u001b[1GReloading nginx configuration (via systemctl): nginx.service.\u001b[K
remote: \u001b[1G       Reloading nginx\u001b[K
remote: \u001b[1G-----> Renaming containers\u001b[K
remote: \u001b[1G       Found previous container(s) (44bc5c3294f2) named zeropdd.web.1\u001b[K
remote: \u001b[1G       Renaming container (44bc5c3294f2) zeropdd.web.1 to zeropdd.web.1.1638204867\u001b[K
remote: \u001b[1G       Renaming container (90ebfeb14f4c) nifty_easley to zeropdd.web.1\u001b[K
remote: \u001b[1G-----> Checking for postdeploy task\u001b[K
remote: \u001b[1G       No postdeploy task found, skipping\u001b[K
remote: \u001b[1G-----> Shutting down old containers in 60 seconds\u001b[K
remote: \u001b[1G=====> Application deployed:\u001b[K
remote: \u001b[1G       http://0pdd.com\u001b[K
remote: \u001b[1G       https://0pdd.com\u001b[K
remote: \u001b[1G       https://www.0pdd.com\u001b[K
remote: \u001b[1G       http://www.0pdd.com\u001b[K
remote: \u001b[1G\u001b[K
To dokku.0capa.com:zeropdd
 + ae3e6db...516aa3c __rultor -> master (forced update)
+ git reset HEAD~1
+ rm -rf config.yml
+ curl -f --connect-timeout 15 -k --retry 5 --retry-delay 30 https://www.0capa.com
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  1039  100  1039    0     0  22586      0 --:--:-- --:--:-- --:--:-- 22586
+ mv /home/r/repo .
++ whoami
+ chown -R root repo
+ '[' -n '' ']'
++ whoami
+ sudo chown -R rultor repo
+ cd repo
+ for f in '"${sensitive[@]}"'
+ '[' -e config.yml ']'
+ echo 'Sensitive file config.yml is absent, we are good'
Sensitive file config.yml is absent, we are good
+ git checkout __rultor
Already on '__rultor'
+ git tag 0.0.1 -m '0.0.1: tagged by rultor.com'
+ git reset --hard
HEAD is now at 7d70b6c build number set
+ git clean -fd
+ git checkout master
Switched to branch 'master'
Your branch is up-to-date with 'origin/master'.
+ git branch -D __rultor
Deleted branch __rultor (was 7d70b6c).
+ git push --all origin
ERROR: Permission to cqfn/0capa.git denied to rultor.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
container 4f15f0c99e391599e44324e41dc86f5dea4dc9ee6514532deedc262e9a0aa3f1 is dead
Mon Nov 29 17:55:18 CET 2021
yegor256 commented 2 years ago

@rultor release, tag is 0.0.2

rultor commented 2 years ago

@rultor release, tag is 0.0.2

@yegor256 OK, I will release it now. Please check the progress here

rultor commented 2 years ago

@rultor release, tag is 0.0.2

@yegor256 Done! FYI, the full log is here (took me 8min)