Skip to content

Commit

Permalink
#1877 heroku
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Feb 27, 2024
1 parent afdcf97 commit 84ebcf3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .rultor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,13 @@ release:
git add settings.xml
git commit -m 'settings.xml'
git remote add dokku [email protected]:rultor
git remote add heroku https://git.heroku.com/rultor.git
rm -rf ~/.ssh
mkdir ~/.ssh
mv ../id_rsa ../id_rsa.pub ~/.ssh
chmod -R 600 ~/.ssh/*
echo -e "Host *\n StrictHostKeyChecking no\n UserKnownHostsFile=/dev/null" > ~/.ssh/config
git push -f dokku $(git symbolic-ref --short HEAD):master
git push -f heroku $(git symbolic-ref --short HEAD):master
git reset HEAD~1
rm -rf settings.xml
curl --insecure -f --connect-timeout 30 --retry 8 --retry-delay 60 https://www.rultor.com
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/rultor/agents/aws/ConnectsInstance.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public Iterable<Directive> process(final XML xml) throws IOException {
final Directives dirs = new Directives();
dirs.xpath("/talk").add("shell")
.attr("id", xml.xpath("/talk/daemon/@id").get(0))
.add("host").set(ready.getPublicDnsName()).up()
.add("host").set(ready.getPublicIpAddress()).up()
.add("port").set(Integer.toString(this.shell.port())).up()
.add("login").set(this.shell.login()).up()
.add("key").set(this.shell.key());
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/rultor/agents/aws/PingsInstance.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ public Iterable<Directive> process(final XML xml) throws IOException {
try {
new Shell.Empty(new Shell.Safe(shell)).exec("whoami");
Logger.warn(
this, "AWS instance %s is alive at %s",
instance, host
this, "AWS instance %s is alive at %s for %s",
instance, host, xml.xpath("/talk/@name").get(0)
);
break;
// @checkstyle IllegalCatchCheck (1 line)
Expand Down

0 comments on commit 84ebcf3

Please sign in to comment.