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

View File

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

View File

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