Changed nemspace to correct gitserver
This commit is contained in:
parent
0ac39a071f
commit
ba3d45c97a
12 changed files with 24 additions and 24 deletions
12
.drone.yml
12
.drone.yml
|
@ -4,7 +4,7 @@ name: check
|
||||||
|
|
||||||
workspace:
|
workspace:
|
||||||
base: /go
|
base: /go
|
||||||
path: src/gitea.hackmi.ch/Phil/goshorly
|
path: src/git.hackmi.ch/Phil/goshorly
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: check-format
|
- name: check-format
|
||||||
|
@ -46,14 +46,14 @@ steps:
|
||||||
- docker ps -a
|
- docker ps -a
|
||||||
- docker context create build
|
- docker context create build
|
||||||
- docker buildx create build --use
|
- 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
|
- docker buildx build
|
||||||
--platform linux/amd64
|
--platform linux/amd64
|
||||||
--no-cache
|
--no-cache
|
||||||
--build-arg CI_COMMIT_BRANCH=$DRONE_COMMIT_BRANCH
|
--build-arg CI_COMMIT_BRANCH=$DRONE_COMMIT_BRANCH
|
||||||
--build-arg CI_COMMIT_SHORT_SHA=$DRONE_COMMIT_SHA
|
--build-arg CI_COMMIT_SHORT_SHA=$DRONE_COMMIT_SHA
|
||||||
--push
|
--push
|
||||||
--tag gitea.hackmi.ch/phil/goshorly:latest
|
--tag git.hackmi.ch/phil/goshorly:latest
|
||||||
.
|
.
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
@ -123,7 +123,7 @@ steps:
|
||||||
- docker ps -a
|
- docker ps -a
|
||||||
- docker context create build
|
- docker context create build
|
||||||
- docker buildx create build --use
|
- 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
|
- docker buildx build
|
||||||
--platform linux/amd64
|
--platform linux/amd64
|
||||||
--no-cache
|
--no-cache
|
||||||
|
@ -131,7 +131,7 @@ steps:
|
||||||
--build-arg CI_COMMIT_SHORT_SHA=$DRONE_COMMIT_SHA
|
--build-arg CI_COMMIT_SHORT_SHA=$DRONE_COMMIT_SHA
|
||||||
--build-arg CI_COMMIT_TAG=$DRONE_TAG
|
--build-arg CI_COMMIT_TAG=$DRONE_TAG
|
||||||
--push
|
--push
|
||||||
--tag gitea.hackmi.ch/phil/goshorly:$DRONE_TAG
|
--tag git.hackmi.ch/phil/goshorly:$DRONE_TAG
|
||||||
.
|
.
|
||||||
|
|
||||||
- name: Release Binary (Git)
|
- name: Release Binary (Git)
|
||||||
|
@ -139,7 +139,7 @@ steps:
|
||||||
settings:
|
settings:
|
||||||
api_key:
|
api_key:
|
||||||
from_secret: DOCKER_PASSWORD
|
from_secret: DOCKER_PASSWORD
|
||||||
base_url: https://gitea.hackmi.ch
|
base_url: https://git.hackmi.ch
|
||||||
files:
|
files:
|
||||||
- linux-amd64
|
- linux-amd64
|
||||||
- windows-amd64.exe
|
- windows-amd64.exe
|
||||||
|
|
|
@ -10,10 +10,10 @@ ENV CI_COMMIT_BRANCH=$CI_COMMIT_BRANCH
|
||||||
ENV CI_COMMIT_SHORT_SHA=$CI_COMMIT_SHORT_SHA
|
ENV CI_COMMIT_SHORT_SHA=$CI_COMMIT_SHORT_SHA
|
||||||
ENV CI_COMMIT_TAG=$CI_COMMIT_TAG
|
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
|
ENV CGO_ENABLED=0
|
||||||
|
|
||||||
WORKDIR /go/src/gitea.hackmi.ch/goshorly
|
WORKDIR /go/src/git.hackmi.ch/goshorly
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN go get -d -v ./...
|
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
|
FROM scratch as production
|
||||||
WORKDIR /
|
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" ]
|
ENTRYPOINT [ "/app" ]
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
"gitea.hackmi.ch/Phil/goshorly/utils"
|
"git.hackmi.ch/Phil/goshorly/utils"
|
||||||
"github.com/go-redis/redis/v8"
|
"github.com/go-redis/redis/v8"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ version: "3"
|
||||||
services:
|
services:
|
||||||
web:
|
web:
|
||||||
# build: . # Only if you want to Build the image on your own Server!
|
# 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:
|
environment:
|
||||||
- HOST=example.org # Domain or IP-Adress
|
- HOST=example.org # Domain or IP-Adress
|
||||||
- PORT=3000 # The Port you want to use
|
- PORT=3000 # The Port you want to use
|
||||||
|
|
|
@ -2,7 +2,7 @@ version: "3"
|
||||||
services:
|
services:
|
||||||
web:
|
web:
|
||||||
# build: . # Only if you want to Build the image on your own Server!
|
# 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:
|
environment:
|
||||||
- HOST=127.0.0.1 # Domain or IP-Adress
|
- HOST=127.0.0.1 # Domain or IP-Adress
|
||||||
- PORT=3000 # The Port you want to use
|
- PORT=3000 # The Port you want to use
|
||||||
|
|
2
go.mod
2
go.mod
|
@ -1,4 +1,4 @@
|
||||||
module gitea.hackmi.ch/Phil/goshorly
|
module git.hackmi.ch/Phil/goshorly
|
||||||
|
|
||||||
go 1.19
|
go 1.19
|
||||||
|
|
||||||
|
|
6
main.go
6
main.go
|
@ -5,9 +5,9 @@ import (
|
||||||
"log"
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"gitea.hackmi.ch/Phil/goshorly/db"
|
"git.hackmi.ch/Phil/goshorly/db"
|
||||||
"gitea.hackmi.ch/Phil/goshorly/routes"
|
"git.hackmi.ch/Phil/goshorly/routes"
|
||||||
"gitea.hackmi.ch/Phil/goshorly/utils"
|
"git.hackmi.ch/Phil/goshorly/utils"
|
||||||
"github.com/gofiber/fiber/v2"
|
"github.com/gofiber/fiber/v2"
|
||||||
"github.com/gofiber/fiber/v2/middleware/limiter"
|
"github.com/gofiber/fiber/v2/middleware/limiter"
|
||||||
"github.com/gofiber/template/html"
|
"github.com/gofiber/template/html"
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package routes
|
package routes
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"gitea.hackmi.ch/Phil/goshorly/db"
|
"git.hackmi.ch/Phil/goshorly/db"
|
||||||
"gitea.hackmi.ch/Phil/goshorly/utils"
|
"git.hackmi.ch/Phil/goshorly/utils"
|
||||||
"github.com/gofiber/fiber/v2"
|
"github.com/gofiber/fiber/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -3,8 +3,8 @@ package routes
|
||||||
import (
|
import (
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
"gitea.hackmi.ch/Phil/goshorly/db"
|
"git.hackmi.ch/Phil/goshorly/db"
|
||||||
"gitea.hackmi.ch/Phil/goshorly/utils"
|
"git.hackmi.ch/Phil/goshorly/utils"
|
||||||
"github.com/gofiber/fiber/v2"
|
"github.com/gofiber/fiber/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -5,8 +5,8 @@ import (
|
||||||
"regexp"
|
"regexp"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"gitea.hackmi.ch/Phil/goshorly/db"
|
"git.hackmi.ch/Phil/goshorly/db"
|
||||||
"gitea.hackmi.ch/Phil/goshorly/utils"
|
"git.hackmi.ch/Phil/goshorly/utils"
|
||||||
"github.com/gofiber/fiber/v2"
|
"github.com/gofiber/fiber/v2"
|
||||||
gonanoid "github.com/matoous/go-nanoid/v2"
|
gonanoid "github.com/matoous/go-nanoid/v2"
|
||||||
)
|
)
|
||||||
|
|
|
@ -3,7 +3,7 @@ package routes
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"gitea.hackmi.ch/Phil/goshorly/db"
|
"git.hackmi.ch/Phil/goshorly/db"
|
||||||
"github.com/gofiber/fiber/v2"
|
"github.com/gofiber/fiber/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -76,7 +76,7 @@
|
||||||
<!-- Footer with Build-Check -->
|
<!-- Footer with Build-Check -->
|
||||||
<footer>
|
<footer>
|
||||||
<center>
|
<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>
|
Phil/goshorly</a>
|
||||||
{{ if .CI_BUILD }}
|
{{ if .CI_BUILD }}
|
||||||
{{ if .CI_COMMIT_TAG }}
|
{{ if .CI_COMMIT_TAG }}
|
||||||
|
|
Loading…
Reference in a new issue