-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into random-latency-for-sqs
- Loading branch information
Showing
23 changed files
with
538 additions
and
283 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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: PR-Tests | ||
on: [pull_request] | ||
jobs: | ||
|
||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Set up Go 1.12 | ||
uses: actions/setup-go@v1 | ||
with: | ||
go-version: 1.12 | ||
id: go | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v1 | ||
|
||
- name: Get dependencies | ||
run: | | ||
go get -v -t -d ./... | ||
- name: Unit Tests | ||
run: go test -cover -race ./app/... |
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,5 +1,7 @@ | ||
.idea | ||
|
||
dist/ | ||
|
||
vendor/ | ||
deployments/ | ||
|
||
|
@@ -10,4 +12,5 @@ goaws_linux_amd64 | |
|
||
setenv.sh | ||
|
||
.env | ||
|
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,69 @@ | ||
# This is an example goreleaser.yaml file with some sane defaults. | ||
# Make sure to check the documentation at http://goreleaser.com | ||
# Before running goreleaser create a tag and push it: | ||
# - git tag -a v0.2.0 -m "Adding Docker to the publish" | ||
# - git push origin v0.2.0 | ||
|
||
before: | ||
hooks: | ||
# you may remove this if you don't use vgo | ||
- go mod tidy | ||
# you may remove this if you don't need go generate | ||
# - go generate ./... | ||
# go test all | ||
# - go test -cover -race ./... | ||
builds: | ||
- | ||
main: ./app/cmd/goaws.go | ||
binary: goaws | ||
env: | ||
- CGO_ENABLED=0 | ||
|
||
goos: | ||
- darwin | ||
- linux | ||
- windows | ||
|
||
goarch: | ||
- amd64 | ||
- arm | ||
- arm64 | ||
|
||
goarm: | ||
- 6 | ||
- 7 | ||
|
||
ignore: | ||
- goos: darwin | ||
goarch: 386 | ||
- goos: linux | ||
goarch: arm | ||
goarm: 7 | ||
|
||
dockers: | ||
- | ||
image_templates: | ||
- "pafortin/goaws" | ||
- "docker.io/pafortin/goaws:{{ .Tag }}" | ||
- "docker.io/pafortin/goaws:latest" | ||
extra_files: | ||
- app/conf/goaws.yaml | ||
|
||
archives: | ||
- replacements: | ||
darwin: Darwin | ||
linux: Linux | ||
windows: Windows | ||
386: i386 | ||
amd64: x86_64 | ||
checksum: | ||
name_template: 'checksums.txt' | ||
snapshot: | ||
name_template: "{{ .Tag }}-next" | ||
changelog: | ||
sort: asc | ||
filters: | ||
exclude: | ||
- '^docs:' | ||
- '^test:' | ||
|
This file was deleted.
Oops, something went wrong.
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,20 +1,19 @@ | ||
FROM golang:alpine as builder | ||
|
||
WORKDIR /go/src/github.com/p4tin/goaws | ||
|
||
RUN apk add --update --repository https://dl-3.alpinelinux.org/alpine/edge/testing/ git | ||
RUN go get github.com/golang/dep/cmd/dep | ||
|
||
COPY Gopkg.lock Gopkg.toml app ./ | ||
RUN dep ensure | ||
COPY . . | ||
|
||
RUN go build -o goaws_linux_amd64 app/cmd/goaws.go | ||
|
||
#FROM golang:alpine as builder | ||
# | ||
#WORKDIR /go/src/github.com/p4tin/goaws | ||
# | ||
#RUN apk add --update --repository https://dl-3.alpinelinux.org/alpine/edge/testing/ git | ||
#RUN go get github.com/golang/dep/cmd/dep | ||
# | ||
#COPY Gopkg.lock Gopkg.toml app ./ | ||
#RUN dep ensure | ||
#COPY . . | ||
# | ||
#RUN go build -o goaws_linux_amd64 app/cmd/goaws.goc | ||
FROM alpine | ||
|
||
EXPOSE 4100 | ||
|
||
COPY --from=builder /go/src/github.com/p4tin/goaws/goaws_linux_amd64 / | ||
COPY ./app/conf/goaws.yaml /conf/ | ||
ENTRYPOINT ["/goaws_linux_amd64"] | ||
COPY goaws / | ||
COPY app/conf/goaws.yaml /conf/ | ||
ENTRYPOINT ["/goaws"] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.