-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Karan Sharma
committed
May 5, 2020
1 parent
19e30bd
commit 006dce4
Showing
6 changed files
with
62 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,5 @@ jsconfig.json | |
|
||
### Misc ### | ||
config.toml | ||
.goreleaser.yml | ||
.DS_Store | ||
/calert/*.tgz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
env: | ||
- GO111MODULE=on | ||
- CGO_ENABLED=0 | ||
- RELEASE_BUILDS=dist/calert_darwin_amd64/calert dist/calert_linux_amd64/calert dist/calert_windows_amd64//calert.exe | ||
|
||
builds: | ||
- binary: calert | ||
goos: | ||
- windows | ||
- darwin | ||
- linux | ||
goarch: | ||
- amd64 | ||
ldflags: | ||
- -s -w -X "main.buildVersion={{ .Tag }} ({{ .ShortCommit }} {{ .Date }})" | ||
|
||
archives: | ||
- format: tar.gz | ||
files: | ||
- config.sample.toml | ||
- README.md | ||
- LICENSE | ||
dockers: | ||
# You can have multiple Docker images. | ||
- | ||
# GOOS of the built binary that should be used. | ||
goos: linux | ||
# GOARCH of the built binary that should be used. | ||
goarch: amd64 | ||
# GOARM of the built binary that should be used. | ||
goarm: '' | ||
# Name templates of the built binaries that should be used. | ||
binaries: | ||
- calert | ||
# Templates of the Docker image names. | ||
image_templates: | ||
- "mrkaran/calert:latest" | ||
- "mrkaran/calert:{{ .Tag }}" | ||
# Skips the docker push. Could be useful if you also do draft releases. | ||
# If set to auto, the release will not be pushed to the docker repository | ||
# in case there is an indicator for prerelease in the tag e.g. v1.0.0-rc1 | ||
# Defaults to false. | ||
skip_push: false | ||
# Path to the Dockerfile (from the project root). | ||
dockerfile: Dockerfile | ||
# 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 | ||
# folder, so if you add `foo/bar.json` here, on your Dockerfile you can | ||
# `COPY foo/bar.json /whatever.json`. | ||
# Also note that the paths here are relative to the folder in which | ||
# goreleaser is being run. | ||
# This field does not support wildcards, you can add an entire folder here | ||
# and use wildcards when you `COPY`/`ADD` in your Dockerfile. | ||
extra_files: | ||
- config.sample.toml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM alpine:latest AS deploy | ||
RUN apk --no-cache add ca-certificates | ||
COPY calert / | ||
COPY config.sample.toml /etc/calert/config.toml | ||
VOLUME ["/etc/calert"] | ||
CMD ["./calert", "--config", "/etc/calert/config.toml"] |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
006dce4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like
.goreleaser.yml
now does whatMakefile
used to do. 👍Makefile
seems broken (inconsistent with goreleaser) now though? 🤔