green-coding-solutions / green-metrics-tool

Measure energy and carbon consumption of software
https://metrics.green-coding.berlin
GNU Affero General Public License v3.0
141 stars 19 forks source link

Kaniko enable multi-stage builds #819

Closed ArneTR closed 2 weeks ago

ArneTR commented 2 weeks ago

Kaniko could not create multi-stage images as the filesystem was mounted read only.

It will place images in the /workspace folder, which seems like a pre-set directory.

This PR mounts the repo into a /tmp/repo folder and mitigates this issue thus allowing multi stage builds

github-actions[bot] commented 2 weeks ago
Eco-CI Output: Label 🖥 avg. CPU utilization [%] 🔋 Total Energy [Joules] 🔌 avg. Power [Watts] Duration [Seconds]
Total Run (incl. overhead) 24.0099 1676.47 3.89 431
Measurement #1 23.9604 1676.47 3.91 429

🌳 CO2 Data: City: Chicago, Lat: 41.8874, Lon: -87.6318 IP: 172.183.159.65 CO₂ from energy is: 0.752735030 g CO₂ from manufacturing (embodied carbon) is: 0.122970251 g Carbon Intensity for this location: 449 gCO₂eq/kWh SCI: 0.875705 gCO₂eq / pipeline run emitted