-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds arm builds with goreleaser (#8)
* Adds arm builds with goreleaser * Fix regex * Finish readme
- Loading branch information
Showing
5 changed files
with
61 additions
and
12 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 |
---|---|---|
@@ -1,26 +1,32 @@ | ||
version: 2.1 | ||
|
||
workflows: | ||
test: | ||
build: | ||
jobs: [ build ] | ||
release: | ||
jobs: | ||
- lint | ||
- unit | ||
|
||
- release: | ||
context: org-global | ||
filters: | ||
branches: | ||
ignore: /.*/ | ||
tags: | ||
# Only on tags formatted like v0.1.1 | ||
only: /^v\d+\.\d+\.\d+[\-a-z0-9]*$/ | ||
jobs: | ||
lint: | ||
build: | ||
docker: | ||
- image: golang:1.14 | ||
- image: golang:1.16 | ||
working_directory: /go/src/github.com/skpr/mail | ||
steps: | ||
- checkout | ||
- run: | | ||
go get golang.org/x/lint/golint | ||
make lint | ||
unit: | ||
- run: make test | ||
release: | ||
docker: | ||
- image: golang:1.13 | ||
working_directory: /go/src/github.com/skpr/mail | ||
- image: docker.io/goreleaser/goreleaser:latest | ||
steps: | ||
- checkout | ||
- run: make test | ||
- run: goreleaser |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.idea | ||
.DS_Store | ||
/bin | ||
/dist |
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,18 @@ | ||
# Documentation at http://goreleaser.com | ||
|
||
builds: | ||
- binary: skprmail | ||
env: [ CGO_ENABLED=0 ] | ||
goos: [ linux, darwin ] | ||
goarch: [ amd64, arm64 ] | ||
|
||
archives: | ||
- replacements: | ||
darwin: macOS | ||
format: binary | ||
|
||
release: | ||
prerelease: auto | ||
github: | ||
owner: skpr | ||
name: mail |
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,8 @@ | ||
FROM alpine:3.15 | ||
|
||
RUN apk add --no-cache ca-certificates | ||
|
||
COPY skprmail /usr/local/bin/ | ||
RUN chmod +x /usr/local/bin/skprmail | ||
|
||
CMD ["/usr/local/bin/skprmail"] |
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