Skip to main content
deleted 39 characters in body
Source Link
Gradyn Wursten
  • 1.8k
  • 2
  • 15
  • 24

enter link description hereHello. I have a server that I deploy many of my personal projects to. These projects are stored & built on Github and deployed automatically via Github actions. I originally did this via the SSH Deploy action, which would rsync the updated application to the server and then restart its systemd unit. However I have decided to try and containerize all my projects for easier management. I created a private container registry and this workflowthis workflow which builds the app and publishes it to the private registry. This is all well and good but then I have to manually log into the server and recreate the container to get the latest version actually deployed. I am trying to automate this via a Github action.

I am aware of Watchtower, but my understanding of it is it just checks in with the registry periodically to make sure it is on the latest version. This is not ideal for me because I want the container to be updated immediately. If watchtower has some sort of webhook I can hit to hint at it from Github that the image has been updated, that would be cool. If not or if there is a better approach, let me know your ideas.

Thanks in advance

enter link description hereHello. I have a server that I deploy many of my personal projects to. These projects are stored & built on Github and deployed automatically via Github actions. I originally did this via the SSH Deploy action, which would rsync the updated application to the server and then restart its systemd unit. However I have decided to try and containerize all my projects for easier management. I created a private container registry and this workflow which builds the app and publishes it to the private registry. This is all well and good but then I have to manually log into the server and recreate the container to get the latest version actually deployed. I am trying to automate this via a Github action.

I am aware of Watchtower, but my understanding of it is it just checks in with the registry periodically to make sure it is on the latest version. This is not ideal for me because I want the container to be updated immediately. If watchtower has some sort of webhook I can hit to hint at it from Github that the image has been updated, that would be cool. If not or if there is a better approach, let me know your ideas.

Thanks in advance

I have a server that I deploy many of my personal projects to. These projects are stored & built on Github and deployed automatically via Github actions. I originally did this via the SSH Deploy action, which would rsync the updated application to the server and then restart its systemd unit. However I have decided to try and containerize all my projects for easier management. I created a private container registry and this workflow which builds the app and publishes it to the private registry. This is all well and good but then I have to manually log into the server and recreate the container to get the latest version actually deployed. I am trying to automate this via a Github action.

I am aware of Watchtower, but my understanding of it is it just checks in with the registry periodically to make sure it is on the latest version. This is not ideal for me because I want the container to be updated immediately. If watchtower has some sort of webhook I can hit to hint at it from Github that the image has been updated, that would be cool. If not or if there is a better approach, let me know your ideas.

Thanks in advance

Source Link
Gradyn Wursten
  • 1.8k
  • 2
  • 15
  • 24

Best way to automatically update docker container to latest image version from a Github action?

enter link description hereHello. I have a server that I deploy many of my personal projects to. These projects are stored & built on Github and deployed automatically via Github actions. I originally did this via the SSH Deploy action, which would rsync the updated application to the server and then restart its systemd unit. However I have decided to try and containerize all my projects for easier management. I created a private container registry and this workflow which builds the app and publishes it to the private registry. This is all well and good but then I have to manually log into the server and recreate the container to get the latest version actually deployed. I am trying to automate this via a Github action.

I am aware of Watchtower, but my understanding of it is it just checks in with the registry periodically to make sure it is on the latest version. This is not ideal for me because I want the container to be updated immediately. If watchtower has some sort of webhook I can hit to hint at it from Github that the image has been updated, that would be cool. If not or if there is a better approach, let me know your ideas.

Thanks in advance