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

github: Run Docker build on all PRs #1417

Merged
merged 1 commit into from
Mar 13, 2024
Merged

Conversation

gandro
Copy link
Member

@gandro gandro commented Mar 12, 2024

This commit changes the "build-image-release.yaml" such that runs for every pull request and commit to the main branch. This ensures the build is tested before the actual release.

The credentials to push to quay.io are only available in the release deployment environment. This commit therefore changes the workflow to only use that environment if the workflow was triggered for a v* git tag. The release environment also needs approval from a Hubble maintainer, so the risk of accidentally pushing a release from a development branch is rather low.

This commit changes the "build-image-release.yaml" such that runs for
every pull request and commit to the `main` branch. This ensures the
build is tested before the actual release.

The credentials to push to quay.io are only available in the `release`
deployment environment. This commit therefore changes the workflow to
only use that environment if the workflow was triggered for a `v*` git
tag. The `release` environment also needs approval from a Hubble
maintainer, so the risk of accidentally pushing a release from a
development branch is rather low.

Signed-off-by: Sebastian Wicki <[email protected]>
@gandro gandro added 🤖 area/CI Impacts the testing / continuous integration testing of the project. release-note/ci This PR makes changes to the CI. labels Mar 12, 2024
@gandro gandro requested a review from chancez March 12, 2024 14:52
@gandro gandro requested review from a team as code owners March 12, 2024 14:52
@gandro gandro requested review from viktor-kurchenko and removed request for a team March 12, 2024 14:52
@gandro
Copy link
Member Author

gandro commented Mar 12, 2024

I have manually tested the "armed" release workflow on my fork, which successfully pushed to quay: https://github.com/gandro/hubble/actions/runs/8250692155/job/22565930550

@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Mar 13, 2024
@rolinh rolinh merged commit 49e0dbd into main Mar 13, 2024
8 checks passed
@rolinh rolinh deleted the pr/gandro/always-run-image-build branch March 13, 2024 06:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖 area/CI Impacts the testing / continuous integration testing of the project. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/ci This PR makes changes to the CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants