neondatabase / autoscaling

Postgres vertical autoscaling in k8s
Apache License 2.0
166 stars 21 forks source link

ci/vm-kernel: change CACHE_TAG calculation #1106

Closed bayandin closed 1 month ago

bayandin commented 1 month ago

In PRs, it is incorrect to use the last commit sha as a cache tag for a docker kernel image. By default, on pull_request, actions/checkout pulls a fake merge commit (PR into the default branch), and potentially an outdated kernel image from the cache might be used in a PR (if main has some changes in the kernel, and PR doesn't include it yet).

This PR changes the logic from using the last commit sha to using a hash from neonvm-kernel directory content and the workflow file itself.