Compare commits

...

10 Commits

Author SHA1 Message Date
Midou36O cda9cc8322
fix dockerfile
ci/woodpecker/push/woodpecker Pipeline was successful Details
2022-11-30 14:20:57 +01:00
Midou36O db4e05f1b7
fix dockerfile
ci/woodpecker/push/woodpecker Pipeline was successful Details
2022-11-30 14:09:44 +01:00
Midou36O 0bc211e884
fix dockerfile
ci/woodpecker/push/woodpecker Pipeline was successful Details
2022-11-30 14:04:18 +01:00
Midou36O 90161e0b9a
ta
ci/woodpecker/push/woodpecker Pipeline was successful Details
2022-11-30 13:49:46 +01:00
Midou36O 422d19a32b
te
ci/woodpecker/push/woodpecker Pipeline failed Details
2022-11-30 13:45:51 +01:00
Midou36O 4fc33519de
aa
ci/woodpecker/push/woodpecker Pipeline failed Details
2022-11-30 12:53:15 +01:00
Midou36O 1acf2e4353
fuck wrong thing
ci/woodpecker/push/woodpecker Pipeline failed Details
2022-11-30 12:18:06 +01:00
Midou36O 838a22b3c0
last test
ci/woodpecker/push/woodpecker Pipeline failed Details
2022-11-30 12:14:49 +01:00
Midou36O a7f56fc2de
tes
ci/woodpecker/tag/woodpecker Pipeline was successful Details
ci/woodpecker/push/woodpecker Pipeline failed Details
2022-11-30 00:07:35 +01:00
Midou36O baced8531f
come on
ci/woodpecker/push/woodpecker Pipeline failed Details
ci/woodpecker/tag/woodpecker Pipeline was successful Details
2022-11-29 23:57:41 +01:00
3 changed files with 16 additions and 14 deletions

View File

@ -1,7 +1,7 @@
pipeline: pipeline:
build: build:
when: when:
event: [push, pull_request] event: [push, pull_request, tag]
image: golang:1.19.3-alpine image: golang:1.19.3-alpine
commands: commands:
- go mod download - go mod download
@ -9,26 +9,28 @@ pipeline:
dockerize: dockerize:
when: when:
branch: [main, master] branch: [main, master]
event: [push, tag] event: [push]
image: plugins/docker image: plugins/docker
settings: settings:
repo: odyssey/gothub registry: git.projectsegfau.lt
repo: git.projectsegfau.lt/midou/gothub
username: username:
from_secret: docker_user from_secret: user
password: password:
from_secret: docker_passwd from_secret: passwd
# password = key or actual password # password = key or actual password
auto_tag: true tags: latest
dockerize-dev: dockerize-dev:
when: when:
event: [push] event: [push]
branch: [dev] branch: [dev]
image: plugins/docker image: plugins/docker
settings: settings:
repo: odyssey/gothub registry: git.projectsegfau.lt
repo: git.projectsegfau.lt/midou/gothub
username: username:
from_secret: docker_user from_secret: user
password: password:
from_secret: docker_passwd from_secret: passwd
# password = key or actual password # password = key or actual password
tags: dev tags: dev

View File

@ -1,7 +1,7 @@
FROM golang:1.19.3-alpine FROM alpine:latest
WORKDIR /gothub WORKDIR /gothub
COPY . . COPY ./gothub .
RUN go mod download COPY ./public/ ./public/
RUN go build . COPY ./views/ ./views/
CMD ["/bin/sh", "-c", "./gothub"] CMD ["/bin/sh", "-c", "./gothub"]
EXPOSE 3000 EXPOSE 3000

View File

@ -36,7 +36,7 @@ func main() {
app := fiber.New(fiber.Config{ app := fiber.New(fiber.Config{
Views: engine, Views: engine,
Prefork: true, Prefork: false,
AppName: "GotHub", AppName: "GotHub",
ErrorHandler: func(ctx *fiber.Ctx, err error) error { ErrorHandler: func(ctx *fiber.Ctx, err error) error {
code := fiber.StatusInternalServerError code := fiber.StatusInternalServerError