2 Commits

Author SHA1 Message Date
c23633a385 chore(deps): update quay.io/skopeo/stable docker tag to v1.18.0
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2025-02-28 17:10:07 +00:00
68db80a05a fix(yaml): set indentation to 2 spaces
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
The replaced module gopkg.in/yaml.v3 enforce an indentation of 4 spaces, when 0
spaces are defined. This is sad, because the old behavior can not be reproduced.

Instead of using 4 spaces for indentation, when `yamlEncoder.SetIndent(0)` is
called, we call `yamlEncoder.SetIndent(2)` to use 2 spaces for indentation,
because it is closer to 0 instead 4 spaces.
2025-02-25 16:35:44 +01:00
2 changed files with 4 additions and 4 deletions

View File

@ -456,7 +456,7 @@ steps:
from_secret: container_image_registry_user from_secret: container_image_registry_user
DEST_CRED_PASSWORD: DEST_CRED_PASSWORD:
from_secret: container_image_registry_password from_secret: container_image_registry_password
image: quay.io/skopeo/stable:v1.17.0 image: quay.io/skopeo/stable:v1.18.0
- name: email-notification - name: email-notification
environment: environment:
@ -696,7 +696,7 @@ steps:
from_secret: container_image_registry_user from_secret: container_image_registry_user
DEST_CRED_PASSWORD: DEST_CRED_PASSWORD:
from_secret: container_image_registry_password from_secret: container_image_registry_password
image: quay.io/skopeo/stable:v1.17.0 image: quay.io/skopeo/stable:v1.18.0
- name: email-notification - name: email-notification
environment: environment:

View File

@ -100,12 +100,12 @@ func run(cmd *cobra.Command, args []string) error {
defer f.Close() defer f.Close()
yamlEncoder := yaml.NewEncoder(f) yamlEncoder := yaml.NewEncoder(f)
yamlEncoder.SetIndent(0) yamlEncoder.SetIndent(2)
return yamlEncoder.Encode(dockerComposeConfig) return yamlEncoder.Encode(dockerComposeConfig)
default: default:
yamlEncoder := yaml.NewEncoder(os.Stdout) yamlEncoder := yaml.NewEncoder(os.Stdout)
yamlEncoder.SetIndent(0) yamlEncoder.SetIndent(2)
return yamlEncoder.Encode(dockerComposeConfig) return yamlEncoder.Encode(dockerComposeConfig)
} }