Commit 2ad7263
authored
Add simplified filename and SHA256 checksum uploads for Gardenlinux images (#985)
- Upload Gardenlinux images with original filename containing hash suffix
(e.g., openstack-gardener_prod-amd64-1877.6-48d68617.qcow2)
- Upload additional copy with simplified filename without hash suffix
(e.g., openstack-gardener_prod-amd64-1877.6.qcow2)
- Create and upload SHA256 checksum file (e.g., openstack-gardener_prod-amd64-1877.6.qcow2.sha256)
- SHA256 checksum file follows standard format: checksum filename
- Gardenlinux-specific logic only triggers for images with shortname 'gardenlinux'
- Uses regex pattern to detect and remove 8-character hex hash suffix from filenames
- Symlink approach for efficient file handling
- Proper cleanup of temporary files
AI-assisted: Claude Code
Signed-off-by: Christian Berendt <berendt@osism.tech>1 parent 8427201 commit 2ad7263
1 file changed
+61
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
219 | 220 | | |
220 | 221 | | |
221 | 222 | | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
222 | 283 | | |
223 | 284 | | |
224 | 285 | | |
| |||
0 commit comments