1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-19 20:57:53 +02:00

fix: delete temporary dir used for docker build (#4178)

<!--

Hi, thanks for contributing!

Please make sure you read our CONTRIBUTING guide.

Also, add tests and the respective documentation changes as well.

-->


<!-- If applied, this commit will... -->

Delete the temporary directory used for building Docker images.

<!-- Why is this change being made? -->

Leaving the temporary directory leads to wasted disk space.

<!-- # Provide links to any relevant tickets, URLs or other resources
-->
This commit is contained in:
Jimmi Dyson 2023-07-11 18:12:21 +01:00 committed by GitHub
parent 3e03fea974
commit f170c92db9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -157,6 +157,7 @@ func process(ctx *context.Context, docker config.Docker, artifacts []*artifact.A
if err != nil {
return fmt.Errorf("failed to create temporary dir: %w", err)
}
defer os.RemoveAll(tmp)
images, err := processImageTemplates(ctx, docker)
if err != nil {