-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #95 from friendsofgo/v0.4.1
V0.4.1
- Loading branch information
Showing
23 changed files
with
407 additions
and
136 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Test & Build | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'cmd/**' | ||
- 'internal/**' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
go: ['1.16'] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ matrix.go }} | ||
- name: Run Tests... | ||
run: go test -v -vet=off -race ./... | ||
- name: Build... | ||
run: go build -race cmd/killgrave/main.go |
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,27 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*.*.*' | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.16 | ||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v2 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
version: latest | ||
args: release --rm-dist | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
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 |
---|---|---|
|
@@ -3,6 +3,7 @@ FROM golang:alpine AS build | |
LABEL MAINTAINER = 'Friends of Go ([email protected])' | ||
|
||
RUN apk add --update git | ||
RUN apk add ca-certificates | ||
WORKDIR /go/src/github.com/friendsofgo/killgrave | ||
COPY . . | ||
RUN export GO111MODULE=on && go mod tidy && TAG=$(git describe --tags --abbrev=0) \ | ||
|
@@ -12,4 +13,5 @@ RUN export GO111MODULE=on && go mod tidy && TAG=$(git describe --tags --abbrev=0 | |
# Building image with the binary | ||
FROM scratch | ||
COPY --from=build /go/bin/killgrave /go/bin/killgrave | ||
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ | ||
ENTRYPOINT ["/go/bin/killgrave"] |
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
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
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,16 +1,16 @@ | ||
module github.com/friendsofgo/killgrave | ||
|
||
go 1.15 | ||
go 1.16 | ||
|
||
require ( | ||
github.com/davecgh/go-spew v1.1.1 // indirect | ||
github.com/gorilla/handlers v1.5.0 | ||
github.com/gorilla/handlers v1.5.1 | ||
github.com/gorilla/mux v1.8.0 | ||
github.com/kr/pretty v0.1.0 // indirect | ||
github.com/radovskyb/watcher v1.0.7 | ||
github.com/stretchr/testify v1.4.0 // indirect | ||
github.com/stretchr/testify v1.4.0 | ||
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect | ||
github.com/xeipuuv/gojsonschema v1.2.0 | ||
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect | ||
gopkg.in/yaml.v2 v2.3.0 | ||
gopkg.in/yaml.v2 v2.4.0 | ||
) |
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
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
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
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 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIICyTCCAbGgAwIBAgIJAMUQpJT1NlnjMA0GCSqGSIb3DQEBBQUAMBYxFDASBgNV | ||
BAMTC2V4YW1wbGUuY29tMB4XDTIxMDMxMTIzMjgwNFoXDTMxMDMwOTIzMjgwNFow | ||
FjEUMBIGA1UEAxMLZXhhbXBsZS5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAw | ||
ggEKAoIBAQCrPV00/BCLJ8KpFfPxXT3hEHZPy6mG8sPUed5PwzpNzramNNiXwxFl | ||
/xd4rTbTk6D8AaojGT7SkJTgsZYLKcnMRo8wfUFc+eyzNjGWNTT6fBQGdiATFR+S | ||
CSwa0S8WZzpY3WMHaQRpDp+KS8X48kcFOKcJtwRMOHrB7VQqgvDjNQzLpk5Pb7Qy | ||
TPGuHvERXfNR8Tidm74MW6YDJ53MpHQBWU6Snmmvu37nJCg1X5F5FgSADfKiuTJM | ||
za8R0gL8YkOoHusnW+R0pA5DAeQcjOn/WWR3cIjz8/5TyTpUarEGnWEa0zKpNRsi | ||
Toude1PhysKA5OBQgA7MKe7rsJD5nWhBAgMBAAGjGjAYMBYGA1UdEQQPMA2CC2V4 | ||
YW1wbGUuY29tMA0GCSqGSIb3DQEBBQUAA4IBAQAb7zACDvTo936OvXNLELZH1a+Q | ||
xY3qaUBgjAqBU4q47jewz8TpLvFksGPOZOODwrCzrVWd/2xeqcrDRfU7ltdIiRQ/ | ||
TbmVhgOU8e8nd00bc766rW6uje/pH2gLl1ysl2kVgEyP/SG+MHcZqsUVavMz9K+G | ||
4iQ71p5G4TcjUIqKZi8VtbNXF4l8qwhGRMDEx/796MB8/4L6rHer6pzWFhya0sjI | ||
LvdUhDAIqKViomzAkrLYBNfJAF4aSCxD7MNpQxZFRibaiSzPiO6nhx4L/b+nUnUN | ||
zDRr+3Brd2bo43k8+4rD+UwFvG5ym/N02hVASJYqUryxBJROU5mwD9HSmll/ | ||
-----END CERTIFICATE----- |
Oops, something went wrong.