Skip to content

Commit 5c29072

Browse files
committed
Fix nightly tag
1 parent 748084d commit 5c29072

File tree

5 files changed

+19
-6
lines changed

5 files changed

+19
-6
lines changed

.github/workflows/nightly.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
publish:
1616
name: Nightly
1717
runs-on: ubuntu-latest
18-
timeout-minutes: 10
18+
timeout-minutes: 20
1919

2020
permissions:
2121
contents: read
@@ -37,6 +37,9 @@ jobs:
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

.github/workflows/release.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ on:
44
push:
55
tags:
66
- 'v*'
7-
schedule:
8-
- cron: "0 0 * * *" # Every day at midnight
97

108
jobs:
119
publish:

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
FROM golang:1.20 as builder
22

3+
ENV TAG="nightly"
4+
ENV COMMIT=""
5+
36
WORKDIR /build
47

58
COPY . .

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ all: build test
1212
GOARCH ?= $(shell go env GOARCH)
1313
GOOS ?= $(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)
1717
DATE := $(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
2222
build:

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
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

5564
In order to query YouTube or Vimeo API you have to obtain an API token first.

0 commit comments

Comments
 (0)