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

👷(deployment) restrict build-and-push github actions to merge #393

Closed

Conversation

mjeammet
Copy link
Member

@mjeammet mjeammet commented Sep 10, 2024

Purpose

The CI builds and pushes back-end and front-end images to DckerHub every time we push to the repo, including on branches.
I want to relax the CI a little, restricting images builds and pushes to what is necessary (merges on main only, from what I know)

Proposal

Description...

Last we spoke, Antoine sounded surprised that images would build outside of tagging but, from what I understood, staging might still need a docker images for kubernetes deployement. But build and push after merging on main might suffice.

To be discussed.

@mjeammet mjeammet added the CI label Sep 10, 2024
@mjeammet mjeammet self-assigned this Sep 10, 2024
@mjeammet mjeammet force-pushed the mpj/restrict-docker-build-and-push-to-merging-releases branch 2 times, most recently from d8b7c86 to a35f52d Compare September 10, 2024 17:41
@mjeammet mjeammet marked this pull request as draft September 11, 2024 07:36
@mjeammet mjeammet marked this pull request as ready for review October 23, 2024 16:58
@mjeammet mjeammet force-pushed the mpj/restrict-docker-build-and-push-to-merging-releases branch 3 times, most recently from f62eb41 to f9bcba6 Compare October 24, 2024 11:54
@mjeammet
Copy link
Member Author

As for sharding, this PR is stuck indefinitely by branch protection rules

image

Do you confirm I can safely remove protection rules on build-and-push-backend and build-and-push-frontend ?

@rouja
Copy link
Contributor

rouja commented Oct 25, 2024

Yes I think you can remove protections rules. As I said you have to keep in mind that maybe sometimes the build will failed on main and no new docker image will be deployed.

Copy link
Contributor

@rouja rouja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

CI builds and pushes back and frontend images to DockerHub
every time we push to the repo. I want to relax the CI a little,
restricting images builds and pushes to merges on main.
@Morendil Morendil force-pushed the mpj/restrict-docker-build-and-push-to-merging-releases branch from f9bcba6 to e94a947 Compare November 5, 2024 20:55
@mjeammet mjeammet closed this Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants