Compare commits
No commits in common. "master" and "849d8e001110de4ea732461944cc3f3f1374e8b4" have entirely different histories.
master
...
849d8e0011
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,3 +1 @@
|
||||
dogtamer.toml
|
||||
gitea_token
|
||||
dist/
|
||||
dogtamer.toml
|
@ -1,36 +0,0 @@
|
||||
# This is an example .goreleaser.yml file with some sensible defaults.
|
||||
# Make sure to check the documentation at https://goreleaser.com
|
||||
before:
|
||||
hooks:
|
||||
# You may remove this if you don't use go modules.
|
||||
- go mod tidy
|
||||
# you may remove this if you don't need go generate
|
||||
- go generate ./...
|
||||
builds:
|
||||
- env:
|
||||
- CGO_ENABLED=0
|
||||
goos:
|
||||
- linux
|
||||
- windows
|
||||
goarch:
|
||||
- amd64
|
||||
main: ./cmd/dogtamer.go
|
||||
archives:
|
||||
- format_overrides:
|
||||
- goos: windows
|
||||
format: zip
|
||||
checksum:
|
||||
name_template: 'checksums.txt'
|
||||
snapshot:
|
||||
name_template: "{{ incpatch .Version }}-next"
|
||||
changelog:
|
||||
sort: asc
|
||||
filters:
|
||||
exclude:
|
||||
- '^docs:'
|
||||
- '^test:'
|
||||
gitea_urls:
|
||||
api: https://git.t-juice.club/api/v1/
|
||||
download: https://git.t-juice.club
|
||||
env_files:
|
||||
gitea_token: gitea_token
|
@ -1,46 +0,0 @@
|
||||
pipeline:
|
||||
test_short:
|
||||
image: golang:latest
|
||||
commands:
|
||||
- go build cmd/dogtamer.go
|
||||
- go test -v ./...
|
||||
when:
|
||||
event: [pull_request, push]
|
||||
|
||||
image-latest:
|
||||
image: plugins/docker
|
||||
settings:
|
||||
repo: registry.t-juice.club/peckertest
|
||||
registry: registry.t-juice.club
|
||||
username: woodpecker
|
||||
password:
|
||||
from_secret: registry_password
|
||||
tags:
|
||||
- latest
|
||||
- "${CI_COMMIT_SHA:0:8}"
|
||||
when:
|
||||
branch: master
|
||||
event: push
|
||||
|
||||
image-tagged:
|
||||
image: plugins/docker
|
||||
settings:
|
||||
repo: registry.t-juice.club/peckertest
|
||||
registry: registry.t-juice.club
|
||||
username: woodpecker
|
||||
password:
|
||||
from_secret: registry_password
|
||||
tags:
|
||||
- "${CI_COMMIT_TAG}"
|
||||
when:
|
||||
event: [tag]
|
||||
|
||||
goreleaser-tagged:
|
||||
image: goreleaser/goreleaser
|
||||
commands:
|
||||
- git fetch --tags
|
||||
- echo "$GITEA_TOKEN" > gitea_token
|
||||
- goreleaser release
|
||||
when:
|
||||
event: [tag]
|
||||
secrets: [gitea_token]
|
@ -1,4 +1,4 @@
|
||||
FROM golang:alpine as builder
|
||||
FROM golang:latest as builder
|
||||
WORKDIR /app
|
||||
COPY go.mod /app/go.mod
|
||||
COPY go.sum /app/go.sum
|
||||
|
@ -9,10 +9,10 @@ import (
|
||||
"runtime/pprof"
|
||||
"strings"
|
||||
|
||||
"git.t-juice.club/torjus/dogtamer"
|
||||
"git.t-juice.club/torjus/dogtamer/config"
|
||||
"git.t-juice.club/torjus/dogtamer/server"
|
||||
"github.com/urfave/cli/v2"
|
||||
"github.uio.no/torjus/dogtamer"
|
||||
"github.uio.no/torjus/dogtamer/config"
|
||||
"github.uio.no/torjus/dogtamer/server"
|
||||
"go.uber.org/zap"
|
||||
"go.uber.org/zap/zapcore"
|
||||
)
|
||||
|
@ -5,7 +5,7 @@ import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"git.t-juice.club/torjus/dogtamer/config"
|
||||
"github.uio.no/torjus/dogtamer/config"
|
||||
)
|
||||
|
||||
func TestConfig(t *testing.T) {
|
||||
|
2
go.mod
2
go.mod
@ -1,4 +1,4 @@
|
||||
module git.t-juice.club/torjus/dogtamer
|
||||
module github.uio.no/torjus/dogtamer
|
||||
|
||||
go 1.17
|
||||
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"bytes"
|
||||
"testing"
|
||||
|
||||
"git.t-juice.club/torjus/dogtamer/m3u"
|
||||
"github.uio.no/torjus/dogtamer/m3u"
|
||||
)
|
||||
|
||||
func TestPlaylist(t *testing.T) {
|
||||
|
@ -7,9 +7,9 @@ import (
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
"git.t-juice.club/torjus/dogtamer/m3u"
|
||||
"github.com/go-chi/chi/v5"
|
||||
"github.com/prometheus/client_golang/prometheus/promhttp"
|
||||
"github.uio.no/torjus/dogtamer/m3u"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
|
@ -2,7 +2,7 @@ package dogtamer
|
||||
|
||||
import "fmt"
|
||||
|
||||
const Version string = "v0.1.13"
|
||||
const Version string = "v0.1.10"
|
||||
|
||||
var Build string
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user