-
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: switch to go mod, refactor build toolchain, CI, etc
- Loading branch information
Showing
372 changed files
with
453 additions
and
166,653 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,20 @@ | ||
version: 2.1 | ||
|
||
orbs: | ||
moul: moul/build@1.16.0 # https://github.com/moul/build | ||
|
||
workflows: | ||
main: | ||
jobs: | ||
- moul/golang-build: | ||
gopkg: github.com/moul/gotty-client | ||
- moul/golang-build: | ||
gopkg: github.com/moul/gotty-client | ||
tag: '1.13' | ||
- moul/golang-build: | ||
gopkg: github.com/moul/gotty-client | ||
tag: '1.12' | ||
- moul/golang-build: | ||
gopkg: github.com/moul/gotty-client | ||
tag: '1.11' | ||
- moul/docker-build |
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,17 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto | ||
|
||
# Collapse vendored and generated files on GitHub | ||
AUTHORS linguist-generated | ||
vendor/* linguist-vendored | ||
rules.mk linguist-vendored | ||
*/vendor/* linguist-vendored | ||
*.gen.* linguist-generated | ||
*.pb.go linguist-generated | ||
*.pb.gw.go linguist-generated | ||
go.sum linguist-generated | ||
go.mod linguist-generated | ||
gen.sum linguist-generated | ||
|
||
# Reduce conflicts on markdown files | ||
*.md merge=union |
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,27 +1,25 @@ | ||
/gotty-client | ||
/dist | ||
# Temporary files | ||
*~ | ||
*# | ||
.#* | ||
coverage.txt | ||
|
||
# Compiled Object files, Static and Dynamic libs (Shared Objects) | ||
*.o | ||
*.a | ||
*.so | ||
|
||
# Folders | ||
_obj | ||
_test | ||
|
||
# Architecture specific extensions/prefixes | ||
*.[568vq] | ||
[568vq].out | ||
|
||
*.cgo1.go | ||
*.cgo2.c | ||
_cgo_defun.c | ||
_cgo_gotypes.go | ||
_cgo_export.* | ||
|
||
_testmain.go | ||
# Vendors | ||
package-lock.json | ||
node_modules/ | ||
vendor/ | ||
|
||
# Binaries for programs and plugins | ||
dist/ | ||
gin-bin | ||
*.exe | ||
*.exe~ | ||
*.dll | ||
*.so | ||
*.dylib | ||
|
||
# Test binary, build with `go test -c` | ||
*.test | ||
*.prof | ||
|
||
# Output of the go coverage tool, specifically when used with LiteIDE | ||
*.out |
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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,11 +1,13 @@ | ||
# build | ||
FROM golang:1.12 as builder | ||
RUN apt update && apt -y install jq | ||
COPY . /go/src/github.com/moul/gotty-client | ||
FROM golang:1.14-alpine as builder | ||
RUN apk add --no-cache git gcc musl-dev make | ||
WORKDIR /go/src/github.com/moul/gotty-client | ||
COPY go.* ./ | ||
RUN go mod download | ||
COPY . ./ | ||
RUN make install | ||
|
||
# minimal runtime | ||
FROM scratch | ||
COPY --from=builder /go/bin/gotty-client /bin/gotty-client | ||
FROM alpine:3.11 | ||
COPY --from=builder /go/bin/gotty-client /bin/ | ||
ENTRYPOINT ["/bin/gotty-client"] |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.