File tree Expand file tree Collapse file tree 3 files changed +20
-20
lines changed Expand file tree Collapse file tree 3 files changed +20
-20
lines changed Original file line number Diff line number Diff line change @@ -13,22 +13,26 @@ jobs:
13
13
14
14
steps :
15
15
- uses : actions/checkout@v2.4.0
16
-
17
- # Required for the changelog to work correctly
18
- - run : git fetch --prune --unshallow
16
+ with :
17
+ fetch-depth : 0
19
18
20
19
- uses : actions/setup-go@v2.1.5
20
+
21
+ - uses : docker/login-action@v1
21
22
with :
22
- go-version : 1.15
23
+ username : ${{ secrets.DOCKER_LOGIN }}
24
+ password : ${{ secrets.DOCKER_PASSWORD }}
23
25
24
- - env :
25
- DOCKER_LOGIN : ${{ secrets.DOCKER_LOGIN }}
26
- DOCKER_PASSWORD : ${{ secrets.DOCKER_PASSWORD }}
27
- run : docker login --username "$DOCKER_LOGIN" --password "$DOCKER_PASSWORD"
26
+ - uses : docker/login-action@v1
27
+ with :
28
+ registry : ghcr.io
29
+ username : ${{ github.repository_owner }}
30
+ password : ${{ secrets.GITHUB_TOKEN }}
28
31
29
32
- uses : goreleaser/goreleaser-action@v2.8.0
33
+ if : startsWith(github.ref, 'refs/tags/')
30
34
with :
31
35
version : latest
32
36
args : release --rm-dist
33
37
env :
34
- GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
38
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -24,9 +24,8 @@ dockers:
24
24
- ' mxpv/podsync:{{ .Tag }}'
25
25
- ' mxpv/podsync:v{{ .Major }}.{{ .Minor }}'
26
26
- ' mxpv/podsync:latest'
27
- binaries :
28
- - podsync
29
- dockerfile : Dockerfile
27
+ - ' ghcr.io/mxpv/podsync:{{ .Tag }}'
28
+ - ' ghcr.io/mxpv/podsync:latest'
30
29
31
30
archives :
32
31
- replacements :
@@ -43,7 +42,7 @@ checksum:
43
42
name_template : ' checksums.txt'
44
43
45
44
snapshot :
46
- name_template : " {{ .Tag }}-next"
45
+ name_template : ' {{ .Tag }}-next'
47
46
48
47
changelog :
49
48
sort : asc
Original file line number Diff line number Diff line change 1
- FROM golang:1.17.5-alpine3.15 AS builder
2
- WORKDIR /app
3
- COPY . /app/
4
- RUN go build -o podsync ./cmd/podsync
1
+ # This is a template to be used by GoReleaser.
2
+ # See docs for details: https://goreleaser.com/customization/docker/
5
3
6
4
FROM alpine:3.10
7
- WORKDIR /app/
8
5
RUN wget -O /usr/bin/youtube-dl https://github.com/ytdl-org/youtube-dl/releases/latest/download/youtube-dl && \
9
6
chmod +x /usr/bin/youtube-dl && \
10
7
apk --no-cache add ca-certificates python ffmpeg tzdata
11
- COPY --from=builder /app/ podsync /app /podsync
8
+ COPY podsync /podsync
12
9
13
- ENTRYPOINT ["/app/ podsync" ]
10
+ ENTRYPOINT ["/podsync" ]
14
11
CMD ["--no-banner" ]
You can’t perform that action at this time.
0 commit comments