Skip to content

Commit

Permalink
Automated commit by Forgejo CI/CD [v1.4.1] - Personal CI/CD Bot
Browse files Browse the repository at this point in the history
  • Loading branch information
poniatowski-bot committed Jan 12, 2024
1 parent 3b6d184 commit 9d32517
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#build stage
FROM golang:alpine AS builder
FROM golang:latest AS builder
ARG VERSION
RUN apk add --no-cache git
WORKDIR /go/src/app
COPY . .
RUN mkdir -p /go/bin/
RUN go mod tidy
RUN go get -d -v ./...
RUN go build -o /go/bin/app -v ./cmd/zehd/main.go

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.4.0
1.4.1
8 changes: 4 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@ module zehd-frontend

go 1.21.5

toolchain go1.21.6

require (
github.com/aws/smithy-go v1.12.1
github.com/joho/godotenv v1.4.0
)

require (
github.com/APoniatowski/boillog v1.1.0
github.com/APoniatowski/funcmytemplate v0.0.1
github.com/gomarkdown/markdown v0.0.0-20221013030248-663e2500819c
github.com/russross/blackfriday/v2 v2.1.0
)

require (
github.com/APoniatowski/funcmytemplate v0.0.1 // indirect
golang.org/x/exp v0.0.0-20231108232855-2478ac86f678 // indirect
)
require golang.org/x/exp v0.0.0-20231108232855-2478ac86f678 // indirect
4 changes: 2 additions & 2 deletions pkg/caching/cachingHelpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import (
func pageBuilder(templatePath, layoutPath string) (*template.Template, error) {
defer boillog.TrackTime("page-builder", time.Now())
funcmytemplates := funcmytemplate.Add()
templates := template.New("")
templates := template.New("layout")
_, err := os.Stat(layoutPath)
if err != nil || !os.IsNotExist(err) {
if err != nil {
templates, err = templates.Funcs(funcmytemplates).ParseFiles(templatePath)
} else {
templates, err = templates.Funcs(funcmytemplates).ParseFiles(layoutPath, templatePath)
Expand Down

0 comments on commit 9d32517

Please sign in to comment.