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