Skip to content

Commit

Permalink
Use a new lib for github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhem committed Dec 11, 2020
1 parent e55960a commit 73b58fa
Show file tree
Hide file tree
Showing 4 changed files with 485 additions and 49 deletions.
31 changes: 25 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,31 @@
FROM golang:1.14 as build-env
FROM golang:1.15 as build-env

WORKDIR /app
COPY . /app

ENV GO111MODULE=on
ENV GO111MODULE=on \
CGO_ENABLED=0 \
GOOS=linux \
GOARCH=amd64

RUN go build -o /app/app
RUN apt-get -qq update && \
apt-get -yqq install upx

WORKDIR /src
COPY . .

RUN go build \
-a \
-ldflags "-s -w -extldflags '-static'" \
-installsuffix cgo \
-tags netgo \
-o /bin/app \
. \
&& strip /bin/app \
&& upx -q -9 /bin/app

FROM gcr.io/distroless/base
COPY --from=build-env /app/app /

USER nobody:nobody

COPY --from=build-env /bin/app /

ENTRYPOINT ["/app"]
30 changes: 24 additions & 6 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,30 @@ module github.com/guilhem/rss-issues-action
go 1.14

require (
github.com/JohannesKaufmann/html-to-markdown v0.0.0-20200323205911-a6f44902a8f4
github.com/google/go-github/v31 v31.0.0
github.com/haya14busa/go-actions-toolkit v0.0.0-20200105081403-ca0307860f01
github.com/mmcdole/gofeed v1.0.0
github.com/thoas/go-funk v0.6.0
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d
github.com/JohannesKaufmann/html-to-markdown v1.2.0
github.com/PuerkitoBio/goquery v1.6.0 // indirect
github.com/andybalholm/cascadia v1.2.0 // indirect
github.com/golang/protobuf v1.4.3 // indirect
github.com/google/go-cmp v0.5.4 // indirect
github.com/google/go-github/v33 v33.0.0
github.com/kr/text v0.2.0 // indirect
github.com/mmcdole/gofeed v1.1.0
github.com/mmcdole/goxpp v0.0.0-20200921145534-2f3784f67354 // indirect
github.com/sebdah/goldie/v2 v2.5.3 // indirect
github.com/sethvargo/go-githubactions v0.3.0
github.com/stretchr/testify v1.6.1 // indirect
github.com/thoas/go-funk v0.7.0
github.com/yuin/goldmark v1.2.1 // indirect
golang.org/x/crypto v0.0.0-20201208171446-5f87f3452ae9 // indirect
golang.org/x/net v0.0.0-20201209123823-ac852fbbde11 // indirect
golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5
golang.org/x/text v0.3.4 // indirect
google.golang.org/appengine v1.6.7 // indirect
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776 // indirect
)

replace github.com/mmcdole/gofeed => github.com/guilhem/gofeed v1.0.1-0.20200518231152-db85dfc4ee46

replace github.com/sethvargo/go-githubactions => github.com/guilhem/go-githubactions v0.3.1-0.20201211173814-6eceb9b50fac
Loading

0 comments on commit 73b58fa

Please sign in to comment.