Compare commits
4 Commits
849d8e0011
...
master
Author | SHA1 | Date | |
---|---|---|---|
79665ddbf9 | |||
7435995981 | |||
708147abc3 | |||
e62e5a878f |
4
.gitignore
vendored
4
.gitignore
vendored
@ -1 +1,3 @@
|
||||
dogtamer.toml
|
||||
dogtamer.toml
|
||||
gitea_token
|
||||
dist/
|
||||
|
36
.goreleaser.yaml
Normal file
36
.goreleaser.yaml
Normal file
@ -0,0 +1,36 @@
|
||||
# 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
|
46
.woodpecker.yml
Normal file
46
.woodpecker.yml
Normal file
@ -0,0 +1,46 @@
|
||||
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:latest as builder
|
||||
FROM golang:alpine 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"
|
||||
|
||||
"github.uio.no/torjus/dogtamer/config"
|
||||
"git.t-juice.club/torjus/dogtamer/config"
|
||||
)
|
||||
|
||||
func TestConfig(t *testing.T) {
|
||||
|
2
go.mod
2
go.mod
@ -1,4 +1,4 @@
|
||||
module github.uio.no/torjus/dogtamer
|
||||
module git.t-juice.club/torjus/dogtamer
|
||||
|
||||
go 1.17
|
||||
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"bytes"
|
||||
"testing"
|
||||
|
||||
"github.uio.no/torjus/dogtamer/m3u"
|
||||
"git.t-juice.club/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.10"
|
||||
const Version string = "v0.1.13"
|
||||
|
||||
var Build string
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user