File tree Expand file tree Collapse file tree 5 files changed +19
-6
lines changed
Expand file tree Collapse file tree 5 files changed +19
-6
lines changed Original file line number Diff line number Diff line change 1515 publish :
1616 name : Nightly
1717 runs-on : ubuntu-latest
18- timeout-minutes : 10
18+ timeout-minutes : 20
1919
2020 permissions :
2121 contents : read
3737
3838 - name : 🏗️ Build and push
3939 uses : docker/build-push-action@v4
40+ env :
41+ TAG : nightly
42+ COMMIT : ${{ github.sha }}
4043 with :
4144 cache-from : type=gha
4245 cache-to : type=gha,mode=max
Original file line number Diff line number Diff line change 44 push :
55 tags :
66 - ' v*'
7- schedule :
8- - cron : " 0 0 * * *" # Every day at midnight
97
108jobs :
119 publish :
Original file line number Diff line number Diff line change 11FROM golang:1.20 as builder
22
3+ ENV TAG="nightly"
4+ ENV COMMIT=""
5+
36WORKDIR /build
47
58COPY . .
Original file line number Diff line number Diff line change @@ -12,11 +12,11 @@ all: build test
1212GOARCH ?= $(shell go env GOARCH)
1313GOOS ?= $(shell go env GOOS)
1414
15- TAG : = $(shell git tag --points-at HEAD)
16- HASH : = $(shell git rev-parse --short HEAD)
15+ TAG ? = $(shell git tag --points-at HEAD)
16+ COMMIT ? = $(shell git rev-parse --short HEAD)
1717DATE := $(shell date)
1818
19- LDFLAGS := "-X 'main.version=${TAG}' -X 'main.commit=${HASH }' -X 'main.date=${DATE}' -X 'main.arch=${GOARCH}'"
19+ LDFLAGS := "-X 'main.version=${TAG}' -X 'main.commit=${COMMIT }' -X 'main.date=${DATE}' -X 'main.arch=${GOARCH}'"
2020
2121.PHONY : build
2222build :
Original file line number Diff line number Diff line change 33![ Podsync] ( docs/img/logo.png )
44
55[ ![ ] ( https://github.com/mxpv/podsync/workflows/CI/badge.svg )] ( https://github.com/mxpv/podsync/actions?query=workflow%3ACI )
6+ [ ![ Nightly] ( https://github.com/mxpv/podsync/actions/workflows/nightly.yml/badge.svg )] ( https://github.com/mxpv/podsync/actions/workflows/nightly.yml )
67[ ![ GitHub release (latest SemVer)] ( https://img.shields.io/github/v/release/mxpv/podsync )] ( https://github.com/mxpv/podsync/releases )
78[ ![ Go Report Card] ( https://goreportcard.com/badge/github.com/mxpv/podsync )] ( https://goreportcard.com/report/github.com/mxpv/podsync )
89[ ![ GitHub Sponsors] ( https://img.shields.io/github/sponsors/mxpv )] ( https://github.com/sponsors/mxpv )
@@ -50,6 +51,14 @@ brew install youtube-dl ffmpeg go
5051- [ Podsync on QNAP NAS Guide] ( ./docs/how_to_setup_podsync_on_qnap_nas.md )
5152- [ Schedule updates with cron] ( ./docs/cron.md )
5253
54+ ## Nightly builds
55+
56+ Nightly builds uploaded every midnight from the ` main ` branch and available for testing:
57+
58+ ``` bash
59+ $ docker run -it --rm ghcr.io/mxpv/podsync:nightly
60+ ```
61+
5362### Access tokens
5463
5564In order to query YouTube or Vimeo API you have to obtain an API token first.
You can’t perform that action at this time.
0 commit comments