Skip to content
This repository was archived by the owner on Dec 11, 2023. It is now read-only.

Commit 39ee26c

Browse files
author
Sameer Naik
authored
Merge pull request #76 from triggermesh/release-archive
releases: create release archives instead of binary releases
2 parents 8f6a2a2 + 2f5c794 commit 39ee26c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/container.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
images: gcr.io/triggermesh/triggermesh-core
4242
tags: |
4343
type=semver,pattern={{raw}}
44-
latest
44+
type=sha
4545
4646
- name: Build and push image
4747
uses: docker/build-push-action@v3

.goreleaser.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ builds:
2020

2121
archives:
2222
- id: default
23-
format: binary
24-
name_template: '{{ .Binary }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
23+
name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
2524
replacements:
2625
darwin: macOS
26+
format_overrides:
27+
- goos: windows
28+
format: zip
2729

2830
checksum:
2931
name_template: 'checksums.txt'

0 commit comments

Comments
 (0)