Skip to content

Commit

Permalink
Merge pull request #54 from fleaz/development
Browse files Browse the repository at this point in the history
Release v0.5.0
  • Loading branch information
fleaz authored Jul 27, 2020
2 parents 0842b9b + 76e7433 commit ba76ed3
Show file tree
Hide file tree
Showing 22 changed files with 823 additions and 1,235 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*.dll
*.so
*.dylib
CptHook

# Test binary, build with `go test -c`
*.test
Expand All @@ -18,6 +19,5 @@ cpthook.yml
vendor/
.vendor-new/

# Binarys
CptHook
# Output from go-releaser
dist/
8 changes: 2 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
language: go
go:
- "1.10"
- "1.12"

services:
- docker
Expand All @@ -11,13 +11,9 @@ env:
- IMAGE="fleaz/cpthook"
- COMMIT=${TRAVIS_COMMIT::8}

before_install:
- curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
- dep ensure

script:
- cp cpthook.yml.example cpthook.yml
- go test ./...
- go test ./... -v
- CGO_ENABLED="0" GOARCH="amd64" GOOS="linux" go build -a -installsuffix cgo -o CptHook
- docker build -f Dockerfile -t $IMAGE .

Expand Down
15 changes: 9 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
FROM alpine
LABEL maintainer mail@fleaz.me
FROM golang:1.14 AS builder
WORKDIR /go/src/cpthook
COPY . /go/src/cpthook
RUN CGO_ENABLED=0 GOOS=linux go build

RUN apk add --no-cache ca-certificates
COPY CptHook /
EXPOSE 8086
CMD ["/CptHook"]
FROM alpine:latest
LABEL maintainer mail@fleaz.me
RUN apk --no-cache add ca-certificates
COPY --from=builder /go/src/cpthook/CptHook /
CMD ["./CptHook"]
182 changes: 0 additions & 182 deletions Gopkg.lock

This file was deleted.

38 changes: 0 additions & 38 deletions Gopkg.toml

This file was deleted.

Loading

0 comments on commit ba76ed3

Please sign in to comment.