mirror of
https://github.com/mxpv/podsync.git
synced 2024-05-11 05:55:04 +00:00
Update release actions
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
This commit is contained in:
24
.github/workflows/release.yml
vendored
24
.github/workflows/release.yml
vendored
@ -13,22 +13,26 @@ jobs:
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2.4.0
|
||||
|
||||
# Required for the changelog to work correctly
|
||||
- run: git fetch --prune --unshallow
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- uses: actions/setup-go@v2.1.5
|
||||
with:
|
||||
go-version: 1.15
|
||||
|
||||
- env:
|
||||
DOCKER_LOGIN: ${{ secrets.DOCKER_LOGIN }}
|
||||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
||||
run: docker login --username "$DOCKER_LOGIN" --password "$DOCKER_PASSWORD"
|
||||
- uses: docker/login-action@v1
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_LOGIN }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
|
||||
- uses: docker/login-action@v1
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- uses: goreleaser/goreleaser-action@v2.8.0
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
with:
|
||||
version: latest
|
||||
args: release --rm-dist
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
@ -24,9 +24,8 @@ dockers:
|
||||
- 'mxpv/podsync:{{ .Tag }}'
|
||||
- 'mxpv/podsync:v{{ .Major }}.{{ .Minor }}'
|
||||
- 'mxpv/podsync:latest'
|
||||
binaries:
|
||||
- podsync
|
||||
dockerfile: Dockerfile
|
||||
- 'ghcr.io/mxpv/podsync:{{ .Tag }}'
|
||||
- 'ghcr.io/mxpv/podsync:latest'
|
||||
|
||||
archives:
|
||||
- replacements:
|
||||
@ -43,7 +42,7 @@ checksum:
|
||||
name_template: 'checksums.txt'
|
||||
|
||||
snapshot:
|
||||
name_template: "{{ .Tag }}-next"
|
||||
name_template: '{{ .Tag }}-next'
|
||||
|
||||
changelog:
|
||||
sort: asc
|
||||
|
11
Dockerfile
11
Dockerfile
@ -1,14 +1,11 @@
|
||||
FROM golang:1.17.5-alpine3.15 AS builder
|
||||
WORKDIR /app
|
||||
COPY . /app/
|
||||
RUN go build -o podsync ./cmd/podsync
|
||||
# This is a template to be used by GoReleaser.
|
||||
# See docs for details: https://goreleaser.com/customization/docker/
|
||||
|
||||
FROM alpine:3.10
|
||||
WORKDIR /app/
|
||||
RUN wget -O /usr/bin/youtube-dl https://github.com/ytdl-org/youtube-dl/releases/latest/download/youtube-dl && \
|
||||
chmod +x /usr/bin/youtube-dl && \
|
||||
apk --no-cache add ca-certificates python ffmpeg tzdata
|
||||
COPY --from=builder /app/podsync /app/podsync
|
||||
COPY podsync /podsync
|
||||
|
||||
ENTRYPOINT ["/app/podsync"]
|
||||
ENTRYPOINT ["/podsync"]
|
||||
CMD ["--no-banner"]
|
||||
|
Reference in New Issue
Block a user