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

Docker push workflow triggered on PR instead of on merge #119

Open
fasmat opened this issue Aug 25, 2022 · 3 comments
Open

Docker push workflow triggered on PR instead of on merge #119

fasmat opened this issue Aug 25, 2022 · 3 comments

Comments

@fasmat
Copy link
Member

fasmat commented Aug 25, 2022

With the introduction of dependabot a small issue popped up; PRs created with dependabot failed their CI builds (e.g. this one: #117)

The reason for that is that dependabot doesn't have access to the same set of secrets as PRs created from others have. So it cannot authenticate against Dockerhub and the build fails.

The question here is should we move the "Docker build & push" step out of the CI workflow and move it into one that is only triggered AFTER the merge of a PR, instead of on every commit? At the moment a new image is released every time the image build has been successful, even if tests failed.

@dshulyak @lrettig @evt

@pigmej
Copy link
Member

pigmej commented Aug 25, 2022

Yes, it should not be like that ;)

should be fixed.

At the same time. we should spend some time aligning most of the repos to more or less the same methodology.

Building post-merge also have a lot of risks especially for poet. (deps can change between the review and merge, target can change) etc.

@fasmat
Copy link
Member Author

fasmat commented Aug 25, 2022

Building post-merge also have a lot of risks especially for poet. (deps can change between the review and merge, target can change) etc.

I still want to build it during the CI step. But not push it to docker hub. When the merge completes build the master branch again and push this to docker hub, but I'm fine with this just serving as a reminder for an aligned CI/CD strategy.

@poszu
Copy link
Contributor

poszu commented Dec 5, 2022

Building the image and pushing it to a registry for every commit/PR is handy for testing purposes - one can later use that image with systests.

@poszu poszu moved this to 📋 Backlog in Dev team kanban Dec 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Backlog
Development

No branches or pull requests

3 participants