Skip to content

Commit 48d4cac

Browse files
committed
feat: Publish binary artifacts to GitHub
1 parent 52c2068 commit 48d4cac

File tree

3 files changed

+54
-0
lines changed

3 files changed

+54
-0
lines changed

.dockerignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
11
.idea
22
/integration_tests
3+
dist/
4+
5+
.dockerignore
6+
.gitignore
7+
.goreleaser.yaml
8+
Dockerfile
9+
LICENSE
10+
README.md

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
/.idea
22
git-semver
33
.testworkdir
4+
5+
dist/

.goreleaser.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
project_name: git-semver
2+
before:
3+
hooks:
4+
# You may remove this if you don't use go modules.
5+
- go mod tidy
6+
# you may remove this if you don't need go generate
7+
- go generate ./...
8+
builds:
9+
- main: ./cli/main.go
10+
goos:
11+
- linux
12+
- windows
13+
- darwin
14+
goarch:
15+
- amd64
16+
- arm64
17+
ignore:
18+
- goos: windows
19+
goarch: arm64
20+
checksum:
21+
name_template: 'checksums.txt'
22+
snapshot:
23+
name_template: "{{ incpatch .Version }}-next"
24+
changelog:
25+
skip: true
26+
release:
27+
github:
28+
owner: PSanetra
29+
name: git-semver
30+
mode: keep-existing
31+
dockers:
32+
- image_templates:
33+
- "psanetra/git-semver:latest"
34+
- "psanetra/git-semver:{{ .Major }}.{{ .Minor }}.{{ .Patch }}"
35+
build_flag_templates:
36+
- "--pull"
37+
- "--label=org.opencontainers.image.created={{ .Date }}"
38+
- "--label=org.opencontainers.image.title={{ .ProjectName }}"
39+
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
40+
- "--label=org.opencontainers.image.version={{ .Version }}"
41+
42+
# modelines, feel free to remove those if you don't want/use them:
43+
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
44+
# vim: set ts=2 sw=2 tw=0 fo=cnqoj

0 commit comments

Comments
 (0)