polypush135

polypush135

Anyone using Github actions for your deployments?

I’m not much of a shell scripter and was hoping to see if anyone else is deploying via github actions and if they are willing to share what that looks like.

My current issue is that I believe I’m trying to start the new release before the prior stop has completed and it ends up failing to start the new release.

https://github.com/MorphicPro/morphic.pro/blob/master/.github/workflows/CD.yml#L142

Should I have some type of condition here that checks for a PID?

Most Liked

tfwright

tfwright

Not a direct solution to your problem, but I am using Ansible in conjunction with Github actions and it has worked great. Ansible will handle a lot of the heavy lifting for you, and it’s DSL is very close to GH actions anyway. I posted the Ansible playbook here. And here’s the example GH action.

ericgray

ericgray

This video on youtube might help Deploying to a server with GitHub Actions

Where Next?

Popular in Questions Top

New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
hariharasudhan94
lets say i have a sample like a = 20; b = 10; if (a > b) do {:ok, "a"} end if (a < b) do {:ok, b} end if (a == b) do {:ok, "equa...
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
greenz1
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
New
WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New

Other popular topics Top

vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
shijith.k
I am trying to start a new phoenix project with elixir 1.9, but mix phx.new does not work. It says that ** (Mix) The task "phx.new" could...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
AngeloChecked
What learn first? Rust or Elixir Hi Elixir community! I’m here because i want learn a new language. I’m a junior developer and mainly i ...
New
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New

We're in Beta

About us Mission Statement