Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[⚙️🐳] Added image build action #40

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

[⚙️🐳] Added image build action #40

wants to merge 3 commits into from

Conversation

RJMurg
Copy link
Member

@RJMurg RJMurg commented Oct 17, 2024

This change adds a new GitHub Action which will build the image to the GitHub Container Registry.
This closes #24

This will allow a new CI/CD approach that will make it easier to deploy.

Some suggested deployment approaches:
1. SSH GitHub Action
Modify the current deployment action to run after the image is built.

The current action requires the entire source code to be cloned onto the server, and then built and deployed locally. This isn't the most efficient approach time-wise or resource-wise, as cloning and then building takes time, and it requires physical storage space.

Also, if the build & deployment stage fails at any point during the SSH phase, it is still marked as a successful run. Which is problematic.

2. Watchtower Container
A Watchtower Container (Or similar system) occasionally polls the remote image repository to see if there is a new version of the container image. If so, it pulls it down and starts the new image.

This means only the current image is stored, minimising storage requirements, and additional actions are not required, as all the checks and work is handled server-site.

@RJMurg RJMurg added the enhancement New feature or request label Oct 17, 2024
@RJMurg RJMurg added this to the CI/CD milestone Oct 17, 2024
@RJMurg RJMurg marked this pull request as draft October 17, 2024 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Enhancement] Improve Container CI/CD
1 participant