Merge branch 'drone-and-import-paths-fixing' of pztrn/giredore into master

This commit is contained in:
Stanislav Nikitin 2019-10-13 10:15:39 +00:00 committed by Gitea
commit ef597063cf
17 changed files with 50 additions and 29 deletions

View File

@ -13,8 +13,27 @@ steps:
from_secret: discord_webhook_secret from_secret: discord_webhook_secret
message: 'Starting building **{{repo.name}}#{{build.number}}@{{build.commit}}** @ {{datetime build.started "02-Jan-2006 15:04:05 MST" "Asia/Yekaterinburg"}} (See {{build.link}} for logs).' message: 'Starting building **{{repo.name}}#{{build.number}}@{{build.commit}}** @ {{datetime build.started "02-Jan-2006 15:04:05 MST" "Asia/Yekaterinburg"}} (See {{build.link}} for logs).'
- name: lint
image: golangci/golangci-lint:latest
environment:
GOFLAGS: -mod=vendor
CGO_ENABLED: 0
commands:
- golangci-lint run
- name: test
image: golang:1.13.1-alpine
environment:
GOFLAGS: -mod=vendor
CGO_ENABLED: 0
commands:
- go test ./...
- name: docker - name: docker
image: plugins/docker image: plugins/docker
when:
branch:
master
settings: settings:
username: username:
from_secret: dockerhub_user from_secret: dockerhub_user
@ -36,7 +55,7 @@ steps:
from_secret: discord_webhook_secret from_secret: discord_webhook_secret
message: " message: "
{{#success build.status}} {{#success build.status}}
**{{repo.name}}#{{build.number}}@{{build.commit}}** deployed. **{{repo.name}}#{{build.number}}@{{build.commit}}** built and pushed to hub.docker.com.
{{ else }} {{ else }}
**{{repo.name}}#{{build.number}}@{{build.commit}}** failed. See {{build.link}}. **{{repo.name}}#{{build.number}}@{{build.commit}}** failed. See {{build.link}}.
{{/success}}" {{/success}}"

View File

@ -1,3 +1,5 @@
[![Build Status](https://ci.dev.pztrn.name/api/badges/pztrn/giredore/status.svg)](https://ci.dev.pztrn.name/pztrn/giredore) [![Discord](https://img.shields.io/discord/632359730089689128)](https://discord.gg/qHN6KsD) ![Keybase XLM](https://img.shields.io/keybase/xlm/pztrn)
# Giredore # Giredore
**Giredore** is an utility that does go-import redirects right. Main idea of this project is to provide easy-to-use yet powerful tool for Go developers to serve they packages right and help them with getting nice and very static URLs for their packages. **Giredore** is an utility that does go-import redirects right. Main idea of this project is to provide easy-to-use yet powerful tool for Go developers to serve they packages right and help them with getting nice and very static URLs for their packages.

View File

@ -5,8 +5,8 @@ import (
"os" "os"
// local // local
clientv1 "sources.dev.pztrn.name/pztrn/giredore/domains/client/v1" clientv1 "go.dev.pztrn.name/giredore/domains/client/v1"
"sources.dev.pztrn.name/pztrn/giredore/internal/logger" "go.dev.pztrn.name/giredore/internal/logger"
// other // other
"github.com/teris-io/cli" "github.com/teris-io/cli"

View File

@ -7,10 +7,10 @@ import (
"syscall" "syscall"
// local // local
serverv1 "sources.dev.pztrn.name/pztrn/giredore/domains/server/v1" serverv1 "go.dev.pztrn.name/giredore/domains/server/v1"
"sources.dev.pztrn.name/pztrn/giredore/internal/configuration" "go.dev.pztrn.name/giredore/internal/configuration"
"sources.dev.pztrn.name/pztrn/giredore/internal/httpserver" "go.dev.pztrn.name/giredore/internal/httpserver"
"sources.dev.pztrn.name/pztrn/giredore/internal/logger" "go.dev.pztrn.name/giredore/internal/logger"
) )
func main() { func main() {

View File

@ -5,8 +5,8 @@ import (
"strings" "strings"
// local // local
"sources.dev.pztrn.name/pztrn/giredore/internal/requester" "go.dev.pztrn.name/giredore/internal/requester"
"sources.dev.pztrn.name/pztrn/giredore/internal/structs" "go.dev.pztrn.name/giredore/internal/structs"
) )
func GetConfiguration(options map[string]string) { func GetConfiguration(options map[string]string) {

View File

@ -2,8 +2,8 @@ package clientv1
import ( import (
// local // local
"sources.dev.pztrn.name/pztrn/giredore/internal/logger" "go.dev.pztrn.name/giredore/internal/logger"
"sources.dev.pztrn.name/pztrn/giredore/internal/requester" "go.dev.pztrn.name/giredore/internal/requester"
// other // other
"github.com/rs/zerolog" "github.com/rs/zerolog"

View File

@ -5,8 +5,8 @@ import (
"strings" "strings"
// local // local
"sources.dev.pztrn.name/pztrn/giredore/internal/requester" "go.dev.pztrn.name/giredore/internal/requester"
"sources.dev.pztrn.name/pztrn/giredore/internal/structs" "go.dev.pztrn.name/giredore/internal/structs"
) )
func DeletePackage(args []string, options map[string]string) { func DeletePackage(args []string, options map[string]string) {

View File

@ -5,8 +5,8 @@ import (
"net/http" "net/http"
// local // local
"sources.dev.pztrn.name/pztrn/giredore/internal/configuration" "go.dev.pztrn.name/giredore/internal/configuration"
"sources.dev.pztrn.name/pztrn/giredore/internal/structs" "go.dev.pztrn.name/giredore/internal/structs"
// other // other
"github.com/labstack/echo" "github.com/labstack/echo"

View File

@ -2,8 +2,8 @@ package serverv1
import ( import (
// local // local
"sources.dev.pztrn.name/pztrn/giredore/internal/httpserver" "go.dev.pztrn.name/giredore/internal/httpserver"
"sources.dev.pztrn.name/pztrn/giredore/internal/logger" "go.dev.pztrn.name/giredore/internal/logger"
// other // other
"github.com/rs/zerolog" "github.com/rs/zerolog"

View File

@ -6,8 +6,8 @@ import (
"strings" "strings"
// local // local
"sources.dev.pztrn.name/pztrn/giredore/internal/configuration" "go.dev.pztrn.name/giredore/internal/configuration"
"sources.dev.pztrn.name/pztrn/giredore/internal/structs" "go.dev.pztrn.name/giredore/internal/structs"
// other // other
"github.com/labstack/echo" "github.com/labstack/echo"

View File

@ -6,8 +6,8 @@ import (
"strings" "strings"
// local // local
"sources.dev.pztrn.name/pztrn/giredore/internal/configuration" "go.dev.pztrn.name/giredore/internal/configuration"
"sources.dev.pztrn.name/pztrn/giredore/internal/structs" "go.dev.pztrn.name/giredore/internal/structs"
// other // other
"github.com/labstack/echo" "github.com/labstack/echo"

2
go.mod
View File

@ -1,4 +1,4 @@
module sources.dev.pztrn.name/pztrn/giredore module go.dev.pztrn.name/giredore
go 1.13 go 1.13

View File

@ -2,7 +2,7 @@ package configuration
import ( import (
// local // local
"sources.dev.pztrn.name/pztrn/giredore/internal/logger" "go.dev.pztrn.name/giredore/internal/logger"
// other // other
"github.com/rs/zerolog" "github.com/rs/zerolog"

View File

@ -10,7 +10,7 @@ import (
"sync" "sync"
// local // local
"sources.dev.pztrn.name/pztrn/giredore/internal/structs" "go.dev.pztrn.name/giredore/internal/structs"
) )
// This structure represents configuration that will be parsed via file. // This structure represents configuration that will be parsed via file.

View File

@ -7,8 +7,8 @@ import (
"strings" "strings"
// local // local
"sources.dev.pztrn.name/pztrn/giredore/internal/configuration" "go.dev.pztrn.name/giredore/internal/configuration"
"sources.dev.pztrn.name/pztrn/giredore/internal/structs" "go.dev.pztrn.name/giredore/internal/structs"
// other // other
"github.com/labstack/echo" "github.com/labstack/echo"

View File

@ -9,8 +9,8 @@ import (
"time" "time"
// local // local
"sources.dev.pztrn.name/pztrn/giredore/internal/configuration" "go.dev.pztrn.name/giredore/internal/configuration"
"sources.dev.pztrn.name/pztrn/giredore/internal/logger" "go.dev.pztrn.name/giredore/internal/logger"
// other // other
"github.com/labstack/echo" "github.com/labstack/echo"

View File

@ -8,7 +8,7 @@ import (
"net/http" "net/http"
// local // local
"sources.dev.pztrn.name/pztrn/giredore/internal/logger" "go.dev.pztrn.name/giredore/internal/logger"
// other // other
"github.com/rs/zerolog" "github.com/rs/zerolog"