diff --git a/.goreleaser.yml b/.goreleaser.yml index b1c33fc89..47b69c34c 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -27,14 +27,7 @@ dockers: goarch: amd64 image_templates: # if version contains 0.0.0 this is a beta build, for which we don't apply the `latest` tag and apply `beta` tag instead - - &amd_latest_image >- - {{- if contains .Version "0.0.0"}} - ghcr.io/srl-labs/clab:beta-amd64 - {{- else}} - {{- if not .IsSnapshot}} - ghcr.io/srl-labs/clab:latest-amd64 - {{- end}} - {{- end }} + - &amd_latest_image '{{- if contains .Version "0.0.0"}}ghcr.io/srl-labs/clab:beta-amd64{{- else}}{{- if not .IsSnapshot}}ghcr.io/srl-labs/clab:latest-amd64{{- end}}{{- end }}' - &amd_versioned_image 'ghcr.io/srl-labs/clab:{{ replace .Version "v" "" }}-amd64' build_flag_templates: - "--platform=linux/amd64" @@ -44,14 +37,7 @@ dockers: goarch: arm64 image_templates: # if version contains 0.0.0 this is a beta build, for which we don't apply the `latest` tag and apply `beta` tag instead - - &arm_latest_image >- - {{- if contains .Version "0.0.0"}} - ghcr.io/srl-labs/clab:beta-arm64 - {{- else}} - {{- if not .IsSnapshot}} - ghcr.io/srl-labs/clab:latest-arm64 - {{- end}} - {{- end }} + - &arm_latest_image '{{- if contains .Version "0.0.0"}}ghcr.io/srl-labs/clab:beta-arm64{{- else}}{{- if not .IsSnapshot}}ghcr.io/srl-labs/clab:latest-arm64{{- end}}{{- end }}' - &arm_versioned_image 'ghcr.io/srl-labs/clab:{{ replace .Version "v" ""}}-arm64' build_flag_templates: - "--platform=linux/arm64" @@ -64,14 +50,7 @@ docker_manifests: - *amd_versioned_image - *arm_versioned_image # this manifest creates a `latest` or `beta` tag based on the version of the release - - name_template: >- - {{- if contains .Version "0.0.0"}} - ghcr.io/srl-labs/clab:beta - {{- else}} - {{- if not .IsSnapshot}} - ghcr.io/srl-labs/clab:latest - {{- end}} - {{- end }} + - name_template: '{{- if contains .Version "0.0.0"}}ghcr.io/srl-labs/clab:beta{{- else}}{{- if not .IsSnapshot}}ghcr.io/srl-labs/clab:latest{{- end}}{{- end }}' image_templates: - *amd_latest_image - *arm_latest_image