Skip to content

Commit

Permalink
chore: add version to goreleaser.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
devstein committed Jun 28, 2024
1 parent c2c19ce commit 56094c0
Showing 1 changed file with 30 additions and 33 deletions.
63 changes: 30 additions & 33 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
project_name: ksops
version: 2
before:
hooks:
# You may remove this if you don't use go modules.
Expand Down Expand Up @@ -32,25 +33,24 @@ archives:
{{- else }}{{ .Arch }}{{ end }}
checksum:
name_template: 'checksums.txt'
name_template: "checksums.txt"
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- "^docs:"
- "^test:"

release:
github:
owner: viaduct-ai
name: kustomize-sops

dockers:

- use: buildx
# Templates of the Docker image names.
# Templates of the Docker image names.
image_templates:
- "viaductoss/{{ .ProjectName }}:latest-amd64"
- "viaductoss/{{ .ProjectName }}:{{ .Tag }}-amd64"
Expand Down Expand Up @@ -87,7 +87,7 @@ dockers:
- .git/

- use: buildx
# Templates of the Docker image names.
# Templates of the Docker image names.
image_templates:
- "viaductoss/{{ .ProjectName }}:latest-arm64"
- "viaductoss/{{ .ProjectName }}:{{ .Tag }}-arm64"
Expand All @@ -105,7 +105,6 @@ dockers:
- "--label=org.opencontainers.image.version={{.Version}}"
- "--platform=linux/arm64"


# If your Dockerfile copies files other than the binary itself,
# you should list them here as well.
# Note that goreleaser will create the same structure inside the temporary
Expand All @@ -125,34 +124,32 @@ dockers:
- .git/

docker_manifests:
- name_template: "viaductoss/{{ .ProjectName }}:latest"
image_templates:
- "viaductoss/{{ .ProjectName }}:latest-amd64"
- "viaductoss/{{ .ProjectName }}:latest-arm64"

- name_template: "viaductoss/{{ .ProjectName }}:{{ .Tag }}"
image_templates:
- "viaductoss/{{ .ProjectName }}:{{ .Tag }}-amd64"
- "viaductoss/{{ .ProjectName }}:{{ .Tag }}-arm64"

- name_template: "viaductoss/{{ .ProjectName }}:latest"
image_templates:
- "viaductoss/{{ .ProjectName }}:latest-amd64"
- "viaductoss/{{ .ProjectName }}:latest-arm64"

- name_template: "viaductoss/{{ .ProjectName }}:v{{ .Major }}"
image_templates:
- "viaductoss/{{ .ProjectName }}:v{{ .Major }}-amd64"
- "viaductoss/{{ .ProjectName }}:v{{ .Major }}-arm64"
- name_template: "viaductoss/{{ .ProjectName }}:{{ .Tag }}"
image_templates:
- "viaductoss/{{ .ProjectName }}:{{ .Tag }}-amd64"
- "viaductoss/{{ .ProjectName }}:{{ .Tag }}-arm64"

- name_template: "quay.io/viaductoss/{{ .ProjectName }}:latest"
image_templates:
- "quay.io/viaductoss/{{ .ProjectName }}:latest-amd64"
- "quay.io/viaductoss/{{ .ProjectName }}:latest-arm64"
- name_template: "viaductoss/{{ .ProjectName }}:v{{ .Major }}"
image_templates:
- "viaductoss/{{ .ProjectName }}:v{{ .Major }}-amd64"
- "viaductoss/{{ .ProjectName }}:v{{ .Major }}-arm64"

- name_template: "quay.io/viaductoss/{{ .ProjectName }}:{{ .Tag }}"
image_templates:
- "quay.io/viaductoss/{{ .ProjectName }}:{{ .Tag }}-amd64"
- "quay.io/viaductoss/{{ .ProjectName }}:{{ .Tag }}-arm64"
- name_template: "quay.io/viaductoss/{{ .ProjectName }}:latest"
image_templates:
- "quay.io/viaductoss/{{ .ProjectName }}:latest-amd64"
- "quay.io/viaductoss/{{ .ProjectName }}:latest-arm64"

- name_template: "quay.io/viaductoss/{{ .ProjectName }}:{{ .Tag }}"
image_templates:
- "quay.io/viaductoss/{{ .ProjectName }}:{{ .Tag }}-amd64"
- "quay.io/viaductoss/{{ .ProjectName }}:{{ .Tag }}-arm64"

- name_template: "quay.io/viaductoss/{{ .ProjectName }}:v{{ .Major }}"
image_templates:
- "quay.io/viaductoss/{{ .ProjectName }}:v{{ .Major }}-amd64"
- "quay.io/viaductoss/{{ .ProjectName }}:v{{ .Major }}-arm64"
- name_template: "quay.io/viaductoss/{{ .ProjectName }}:v{{ .Major }}"
image_templates:
- "quay.io/viaductoss/{{ .ProjectName }}:v{{ .Major }}-amd64"
- "quay.io/viaductoss/{{ .ProjectName }}:v{{ .Major }}-arm64"

0 comments on commit 56094c0

Please sign in to comment.