-
-
Notifications
You must be signed in to change notification settings - Fork 265
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Maksym Pavlenko <[email protected]>
- Loading branch information
Showing
3 changed files
with
20 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,22 +13,26 @@ jobs: | |
|
||
steps: | ||
- uses: actions/[email protected] | ||
|
||
# Required for the changelog to work correctly | ||
- run: git fetch --prune --unshallow | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions/[email protected] | ||
|
||
- uses: docker/login-action@v1 | ||
with: | ||
go-version: 1.15 | ||
username: ${{ secrets.DOCKER_LOGIN }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
|
||
- 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: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- uses: goreleaser/[email protected] | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
version: latest | ||
args: release --rm-dist | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"] |