Skip to content

Commit

Permalink
can't find why multiline template introduces a space =((
Browse files Browse the repository at this point in the history
  • Loading branch information
hellt committed Jul 5, 2024
1 parent 4924bcf commit 263b426
Showing 1 changed file with 3 additions and 24 deletions.
27 changes: 3 additions & 24 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand All @@ -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
Expand Down

0 comments on commit 263b426

Please sign in to comment.