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

fix: Support repos where there's no tag at all #144

Merged
merged 2 commits into from
Dec 20, 2024
Merged

Conversation

viccuad
Copy link
Member

@viccuad viccuad commented Dec 20, 2024

Description

This fixes :latest and CI for repos where the policy has never had a tag. E.g of failure without this fix:
https://github.com/kubewarden/raw-mutation-wasi-policy/actions/runs/12430796708/job/34706956927

Test

tested locally.

Additional Information

Once merged, needs to be tagged as v3.4.2.

Tradeoff

Potential improvement

`version` must be always set even if there's no tags. Set a bogus
`version`.

Signed-off-by: Víctor Cuadrado Juan <vcuadradojuan@suse.de>
sed --in-place 's/3\.4\.1/3\.4\.2/' $(find . -maxdepth 3 -name "*.yml")

Signed-off-by: Víctor Cuadrado Juan <vcuadradojuan@suse.de>
Copy link
Member

@flavio flavio left a comment

Choose a reason for hiding this comment

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

Merge and tag it 🚀

@viccuad viccuad merged commit 23f81f8 into kubewarden:main Dec 20, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants