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

Add commit based tags on pushed quay images #228

Merged
merged 2 commits into from
Feb 19, 2024

Conversation

RamLavi
Copy link
Collaborator

@RamLavi RamLavi commented Feb 1, 2024

Currently only the actual checkup image is pushed to quay on every PR merged.
This PR does so also to the vm-under-test and traffic-gen container-disk images.

Currently when a PR is merged then the vm-under-test disk-image is built
and pushed [0] to the kiagnose org on quay with the "latest" tag [1].
This commit adds another tag that is commit based (first 8 characters of
the sha commit [2]).
Adding it will allow fetch the images present on every future merged PR
on the repo.

[0]
https://github.com/kiagnose/kubevirt-dpdk-checkup/blob/ccc6f641cceaa088898571109031ec94be1040b3/.github/workflows/vm_containerdisk_publish.yaml

[1]
https://github.com/kiagnose/kubevirt-dpdk-checkup/blob/ccc6f641cceaa088898571109031ec94be1040b3/Makefile#L120C66-L120C93

[2]
https://github.com/kiagnose/kubevirt-dpdk-checkup/blob/ccc6f641cceaa088898571109031ec94be1040b3/Makefile#L5

Signed-off-by: Ram Lavi <[email protected]>
Currently when a PR is merged then the traffic-gen disk-image is built
and pushed [0] to the kiagnose org on quay with the "latest" tag [1].
This commit adds another tag that is commit based (first 8 characters of
the sha commit [2]).
Adding it will allow fetch the images present on every future merged PR
on the repo.

[0]
https://github.com/kiagnose/kubevirt-dpdk-checkup/blob/ccc6f641cceaa088898571109031ec94be1040b3/.github/workflows/traffic_gen_containerdisk_publish.yaml

[1]
https://github.com/kiagnose/kubevirt-dpdk-checkup/blob/ccc6f641cceaa088898571109031ec94be1040b3/Makefile#L140

[2]
https://github.com/kiagnose/kubevirt-dpdk-checkup/blob/ccc6f641cceaa088898571109031ec94be1040b3/Makefile#L5

Signed-off-by: Ram Lavi <[email protected]>
Copy link
Member

@orelmisan orelmisan left a comment

Choose a reason for hiding this comment

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

Thank you for the PR @RamLavi.

Overall looks good.
I think we should also introduce an automatic periodic GitHub actions workflow to clean old tags, so we will not have too much old tags on quay.io.
WDYT?

@RamLavi
Copy link
Collaborator Author

RamLavi commented Feb 5, 2024

Thank you for the PR @RamLavi.

Overall looks good. I think we should also introduce an automatic periodic GitHub actions workflow to clean old tags, so we will not have too much old tags on quay.io. WDYT?

I don't think it's necessary, and even if it is - we should discuss with QE on how far in the past should tags be available. So anyway I would do this is a separate PR

@orelmisan orelmisan merged commit 0d5d54c into kiagnose:main Feb 19, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants