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 15
15
publish :
16
16
name : Nightly
17
17
runs-on : ubuntu-latest
18
- timeout-minutes : 10
18
+ timeout-minutes : 20
19
19
20
20
permissions :
21
21
contents : read
37
37
38
38
- name : 🏗️ Build and push
39
39
uses : docker/build-push-action@v4
40
+ env :
41
+ TAG : nightly
42
+ COMMIT : ${{ github.sha }}
40
43
with :
41
44
cache-from : type=gha
42
45
cache-to : type=gha,mode=max
Original file line number Diff line number Diff line change 4
4
push :
5
5
tags :
6
6
- ' v*'
7
- schedule :
8
- - cron : " 0 0 * * *" # Every day at midnight
9
7
10
8
jobs :
11
9
publish :
Original file line number Diff line number Diff line change 1
1
FROM golang:1.20 as builder
2
2
3
+ ENV TAG="nightly"
4
+ ENV COMMIT=""
5
+
3
6
WORKDIR /build
4
7
5
8
COPY . .
Original file line number Diff line number Diff line change @@ -12,11 +12,11 @@ all: build test
12
12
GOARCH ?= $(shell go env GOARCH)
13
13
GOOS ?= $(shell go env GOOS)
14
14
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)
17
17
DATE := $(shell date)
18
18
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}'"
20
20
21
21
.PHONY : build
22
22
build :
Original file line number Diff line number Diff line change 3
3
![ Podsync] ( docs/img/logo.png )
4
4
5
5
[ ![ ] ( 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 )
6
7
[ ![ GitHub release (latest SemVer)] ( https://img.shields.io/github/v/release/mxpv/podsync )] ( https://github.com/mxpv/podsync/releases )
7
8
[ ![ Go Report Card] ( https://goreportcard.com/badge/github.com/mxpv/podsync )] ( https://goreportcard.com/report/github.com/mxpv/podsync )
8
9
[ ![ GitHub Sponsors] ( https://img.shields.io/github/sponsors/mxpv )] ( https://github.com/sponsors/mxpv )
@@ -50,6 +51,14 @@ brew install youtube-dl ffmpeg go
50
51
- [ Podsync on QNAP NAS Guide] ( ./docs/how_to_setup_podsync_on_qnap_nas.md )
51
52
- [ Schedule updates with cron] ( ./docs/cron.md )
52
53
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
+
53
62
### Access tokens
54
63
55
64
In 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