Compare commits

..

2 Commits
master ... dev

Author SHA1 Message Date
832e11e70b
Merge branch 'master' into dev
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2022-11-29 23:34:00 +01:00
27379b50fa
test4 2022-11-29 23:32:24 +01:00
5 changed files with 13 additions and 15 deletions

View File

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

View File

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

View File

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

View File

0
wahmen
View File