cilium / hubble

Hubble - Network, Service & Security Observability for Kubernetes using eBPF
Apache License 2.0
3.41k stars 246 forks source link

github: Run Docker build on all PRs #1417

Closed gandro closed 4 months ago

gandro commented 4 months ago

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.

gandro commented 4 months ago

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