Skip to content
This repository was archived by the owner on Nov 7, 2019. It is now read-only.

Commit 7d95de2

Browse files
author
Christopher Hein
authored
Merge pull request #26 from christopherhein/chore/12-goreleaser
Adding Go Releaser Codebase
2 parents 178bb93 + da8e492 commit 7d95de2

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

.goreleaser.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
project_name: aws-operator
2+
3+
# This will be useful in making sure that all files are updated before
4+
# a release is made.
5+
before:
6+
hooks:
7+
- make codegen
8+
- make update-bindata
9+
10+
# Builds the binary for each platform
11+
builds:
12+
- binary: aws-operator
13+
main: ./cmd/aws-operator/
14+
goos:
15+
- darwin
16+
- windows
17+
- linux
18+
goarch:
19+
- amd64
20+
21+
# Will package downloadable archives to share on Github
22+
archive:
23+
replacements:
24+
darwin: Darwin
25+
linux: Linux
26+
windows: Windows
27+
format: tar.gz
28+
format_overrides:
29+
- goos: windows
30+
format: zip
31+
32+
# Use short hash for commit ldflags
33+
git:
34+
short_hash: true
35+
36+
# Release will configure where the GitHub release is handled
37+
release:
38+
github:
39+
owner: christopherhein
40+
name: aws-operator
41+
draft: true
42+
prerelease: true
43+
44+
# Creates a Docker container with the operator packaged into it for distribution
45+
dockers:
46+
- image: christopherhein/aws-operator
47+
binary: aws-operator
48+
dockerfile: Dockerfile
49+
tag_templates:
50+
- "{{ .Tag }}"
51+
- "latest"

0 commit comments

Comments
 (0)