ffddorf / ffddorf/k3os-packer

Cleanup old templates

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HCL
Stars
2
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Packer creates a new template on every run. This can quickly exhaust our storage.
We should put a cleanup step into CI deleting old templates after a Packer run.

- For the `main` branch we should maybe keep 2-3 templates
- For PR runs we should delete the template after it was successfully built, because we likely only want to use templates made from `main`

There is a Proxmox CLI tool called `pvesh` that could be used for this: https://pve.proxmox.com/wiki/Proxmox_VE_API#Using_.27pvesh.27_to_access_the_API

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.