File tree Expand file tree Collapse file tree 6 files changed +39
-37
lines changed
Expand file tree Collapse file tree 6 files changed +39
-37
lines changed Original file line number Diff line number Diff line change 1+ FROM alpine:3.11.6
2+ COPY iptv-proxy /
3+ ENTRYPOINT ["/iptv-proxy"]
Original file line number Diff line number Diff line change 1515 -
1616 name : Unshallow
1717 run : git fetch --prune --unshallow
18+ -
19+ name : Docker login
20+ run : echo ${{ secrets.GH_TOKEN }} | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin
1821 -
1922 name : Set up Go
2023 uses : actions/setup-go@v2
Original file line number Diff line number Diff line change 1010 steps :
1111 - uses : actions/checkout@v1
1212 - name : Run golangci-lint
13- uses : actions-contrib/golangci-lint@v1
13+ uses : golangci/golangci-lint-action@v1
14+ with :
15+ version : v1.27
1416 - name : Run tests and attempt building
1517 run : |
1618 export PATH=$(go env GOPATH)/bin:$PATH
1719 go test -mod vendor -v -race ./...
1820 go build -mod vendor
21+ docker-build :
22+ runs-on : ubuntu-latest
23+ steps :
24+ - uses : actions/checkout@v2
25+ - name : Build the Docker image
26+ run : docker build . --file Dockerfile --tag iptv-proxy:ci-build
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -25,15 +25,34 @@ release:
2525 github :
2626 owner : pierre-emmanuelJ
2727 name : iptv-proxy
28- draft : true
28+ draft : false
2929
3030nfpms :
3131 -
32- vendor : Pierre-Emmanuel
32+ vendor : Pierre-Emmanuel Jacquier
3333 homepage : https://github.com/pierre-emmanuelJ/iptv-proxy
3434 maintainer :
Pierre-Emmanuel <[email protected] > 3535 description : Reverse proxy on iptv m3u file
3636 license : Apache 2.0
3737 formats :
3838 - deb
3939 - rpm
40+
41+ dockers :
42+ -
43+ goos : linux
44+ goarch : amd64
45+ binaries :
46+ - iptv-proxy
47+ image_templates :
48+ - " docker.pkg.github.com/pierre-emmanuelj/iptv-proxy/iptv-proxy:{{ .Tag }}"
49+
50+ skip_push : false
51+
52+ build_flag_templates :
53+ - " --label=org.opencontainers.image.created={{.Date}}"
54+ - " --label=org.opencontainers.image.name={{.ProjectName}}"
55+ - " --label=org.opencontainers.image.revision={{.FullCommit}}"
56+ - " --label=org.opencontainers.image.version={{.Version}}"
57+
58+ dockerfile : .Dockerfile.goreleaser
Original file line number Diff line number Diff line change @@ -4,8 +4,6 @@ WORKDIR /go/src/github.com/pierre-emmanuelJ/iptv-proxy
44COPY . .
55RUN GO111MODULE=off CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o iptv-proxy .
66
7- FROM alpine:latest
8- RUN apk --no-cache add ca-certificates
9- WORKDIR /root/
10- COPY --from=0 /go/src/github.com/pierre-emmanuelJ/iptv-proxy/iptv-proxy .
11- CMD ["./iptv-proxy" ]
7+ FROM alpine:3.11.6
8+ COPY --from=0 /go/src/github.com/pierre-emmanuelJ/iptv-proxy/iptv-proxy /
9+ ENTRYPOINT ["/iptv-proxy" ]
You can’t perform that action at this time.
0 commit comments