Changed nemspace to correct gitserver

This commit is contained in:
Phil 2023-09-04 20:59:51 +02:00
parent 0ac39a071f
commit ba3d45c97a
12 changed files with 24 additions and 24 deletions

View file

@ -4,7 +4,7 @@ name: check
workspace:
base: /go
path: src/gitea.hackmi.ch/Phil/goshorly
path: src/git.hackmi.ch/Phil/goshorly
steps:
- name: check-format
@ -46,14 +46,14 @@ steps:
- docker ps -a
- docker context create build
- docker buildx create build --use
- echo $DOCKER_PASSWORD | docker login --username Phil --password-stdin gitea.hackmi.ch
- echo $DOCKER_PASSWORD | docker login --username Phil --password-stdin git.hackmi.ch
- docker buildx build
--platform linux/amd64
--no-cache
--build-arg CI_COMMIT_BRANCH=$DRONE_COMMIT_BRANCH
--build-arg CI_COMMIT_SHORT_SHA=$DRONE_COMMIT_SHA
--push
--tag gitea.hackmi.ch/phil/goshorly:latest
--tag git.hackmi.ch/phil/goshorly:latest
.
services:
@ -123,7 +123,7 @@ steps:
- docker ps -a
- docker context create build
- docker buildx create build --use
- echo $DOCKER_PASSWORD | docker login --username Phil --password-stdin gitea.hackmi.ch
- echo $DOCKER_PASSWORD | docker login --username Phil --password-stdin git.hackmi.ch
- docker buildx build
--platform linux/amd64
--no-cache
@ -131,7 +131,7 @@ steps:
--build-arg CI_COMMIT_SHORT_SHA=$DRONE_COMMIT_SHA
--build-arg CI_COMMIT_TAG=$DRONE_TAG
--push
--tag gitea.hackmi.ch/phil/goshorly:$DRONE_TAG
--tag git.hackmi.ch/phil/goshorly:$DRONE_TAG
.
- name: Release Binary (Git)
@ -139,7 +139,7 @@ steps:
settings:
api_key:
from_secret: DOCKER_PASSWORD
base_url: https://gitea.hackmi.ch
base_url: https://git.hackmi.ch
files:
- linux-amd64
- windows-amd64.exe

View file

@ -10,10 +10,10 @@ ENV CI_COMMIT_BRANCH=$CI_COMMIT_BRANCH
ENV CI_COMMIT_SHORT_SHA=$CI_COMMIT_SHORT_SHA
ENV CI_COMMIT_TAG=$CI_COMMIT_TAG
ENV I_PACKAGE="gitea.hackmi.ch/Phil/goshorly/utils"
ENV I_PACKAGE="git.hackmi.ch/Phil/goshorly/utils"
ENV CGO_ENABLED=0
WORKDIR /go/src/gitea.hackmi.ch/goshorly
WORKDIR /go/src/git.hackmi.ch/goshorly
COPY . .
RUN go get -d -v ./...
@ -22,5 +22,5 @@ RUN go build -a -installsuffix cgo -ldflags=" -X $I_PACKAGE.CI_COMMIT_SHORT_SHA=
FROM scratch as production
WORKDIR /
COPY --from=builder /go/src/gitea.hackmi.ch/goshorly/app /app
COPY --from=builder /go/src/git.hackmi.ch/goshorly/app /app
ENTRYPOINT [ "/app" ]

View file

@ -4,7 +4,7 @@ import (
"context"
"log"
"gitea.hackmi.ch/Phil/goshorly/utils"
"git.hackmi.ch/Phil/goshorly/utils"
"github.com/go-redis/redis/v8"
)

View file

@ -2,7 +2,7 @@ version: "3"
services:
web:
# build: . # Only if you want to Build the image on your own Server!
image: gitea.hackmi.ch/phil/goshorly:latest
image: git.hackmi.ch/phil/goshorly:latest
environment:
- HOST=example.org # Domain or IP-Adress
- PORT=3000 # The Port you want to use

View file

@ -2,7 +2,7 @@ version: "3"
services:
web:
# build: . # Only if you want to Build the image on your own Server!
image: gitea.hackmi.ch/phil/goshorly:latest
image: git.hackmi.ch/phil/goshorly:latest
environment:
- HOST=127.0.0.1 # Domain or IP-Adress
- PORT=3000 # The Port you want to use

2
go.mod
View file

@ -1,4 +1,4 @@
module gitea.hackmi.ch/Phil/goshorly
module git.hackmi.ch/Phil/goshorly
go 1.19

View file

@ -5,9 +5,9 @@ import (
"log"
"net/http"
"gitea.hackmi.ch/Phil/goshorly/db"
"gitea.hackmi.ch/Phil/goshorly/routes"
"gitea.hackmi.ch/Phil/goshorly/utils"
"git.hackmi.ch/Phil/goshorly/db"
"git.hackmi.ch/Phil/goshorly/routes"
"git.hackmi.ch/Phil/goshorly/utils"
"github.com/gofiber/fiber/v2"
"github.com/gofiber/fiber/v2/middleware/limiter"
"github.com/gofiber/template/html"

View file

@ -1,8 +1,8 @@
package routes
import (
"gitea.hackmi.ch/Phil/goshorly/db"
"gitea.hackmi.ch/Phil/goshorly/utils"
"git.hackmi.ch/Phil/goshorly/db"
"git.hackmi.ch/Phil/goshorly/utils"
"github.com/gofiber/fiber/v2"
)

View file

@ -3,8 +3,8 @@ package routes
import (
"log"
"gitea.hackmi.ch/Phil/goshorly/db"
"gitea.hackmi.ch/Phil/goshorly/utils"
"git.hackmi.ch/Phil/goshorly/db"
"git.hackmi.ch/Phil/goshorly/utils"
"github.com/gofiber/fiber/v2"
)

View file

@ -5,8 +5,8 @@ import (
"regexp"
"time"
"gitea.hackmi.ch/Phil/goshorly/db"
"gitea.hackmi.ch/Phil/goshorly/utils"
"git.hackmi.ch/Phil/goshorly/db"
"git.hackmi.ch/Phil/goshorly/utils"
"github.com/gofiber/fiber/v2"
gonanoid "github.com/matoous/go-nanoid/v2"
)

View file

@ -3,7 +3,7 @@ package routes
import (
"time"
"gitea.hackmi.ch/Phil/goshorly/db"
"git.hackmi.ch/Phil/goshorly/db"
"github.com/gofiber/fiber/v2"
)

View file

@ -76,7 +76,7 @@
<!-- Footer with Build-Check -->
<footer>
<center>
Made with <a href="https://gitea.hackmi.ch/Phil/goshorly"><i class="fas fa-code-branch"></i>
Made with <a href="https://git.hackmi.ch/Phil/goshorly"><i class="fas fa-code-branch"></i>
Phil/goshorly</a>
{{ if .CI_BUILD }}
{{ if .CI_COMMIT_TAG }}