diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2024-02-03 16:24:39 +0200 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2024-02-09 22:16:21 +0200 |
commit | 69d9740de6fa59a9e2e13c3ea1490ee773392fdc (patch) | |
tree | edafe4fdbf938a8448319b605342915e19398b28 | |
parent | update node dependencies (diff) | |
download | soko-69d9740de6fa59a9e2e13c3ea1490ee773392fdc.tar.gz soko-69d9740de6fa59a9e2e13c3ea1490ee773392fdc.tar.bz2 soko-69d9740de6fa59a9e2e13c3ea1490ee773392fdc.zip |
add templ dependency
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | Dockerfile | 3 | ||||
-rw-r--r-- | Dockerfile.updater | 3 | ||||
-rw-r--r-- | go.mod | 1 | ||||
-rw-r--r-- | go.sum | 2 |
5 files changed, 10 insertions, 2 deletions
@@ -3,3 +3,6 @@ assets/ .idea .bin/soko + +*_templ.go +*_templ.txt @@ -1,7 +1,8 @@ FROM golang:1.21.4 AS builder +RUN go install github.com/a-h/templ/cmd/templ@latest WORKDIR /go/src/soko COPY . /go/src/soko -RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o bin . +RUN templ generate && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o bin . FROM node:21 AS assetsbuilder WORKDIR /go/src/soko diff --git a/Dockerfile.updater b/Dockerfile.updater index 5735df8..3d53e8a 100644 --- a/Dockerfile.updater +++ b/Dockerfile.updater @@ -1,7 +1,8 @@ FROM golang:1.21.4 AS builder +RUN go install github.com/a-h/templ/cmd/templ@latest WORKDIR /go/src/soko COPY . /go/src/soko -RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o bin . +RUN templ generate && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o bin . FROM gentoo/stage3:latest as gentoobuilder @@ -4,6 +4,7 @@ go 1.21 require ( github.com/99designs/gqlgen v0.17.42 + github.com/a-h/templ v0.2.543 github.com/go-git/go-git/v5 v5.11.0 github.com/go-pg/pg v8.0.7+incompatible github.com/go-pg/pg/v10 v10.12.0 @@ -7,6 +7,8 @@ github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migc github.com/Microsoft/go-winio v0.6.1/go.mod h1:LRdKpFKfdobln8UmuiYcKPot9D2v6svN5+sAH+4kjUM= github.com/ProtonMail/go-crypto v0.0.0-20230923063757-afb1ddc0824c h1:kMFnB0vCcX7IL/m9Y5LO+KQYv+t1CQOiFe6+SV2J7bE= github.com/ProtonMail/go-crypto v0.0.0-20230923063757-afb1ddc0824c/go.mod h1:EjAoLdwvbIOoOQr3ihjnSoLZRtE8azugULFRteWMNc0= +github.com/a-h/templ v0.2.543 h1:8YyLvyUtf0/IE2nIwZ62Z/m2o2NqwhnMynzOL78Lzbk= +github.com/a-h/templ v0.2.543/go.mod h1:jP908DQCwI08IrnTalhzSEH9WJqG/Q94+EODQcJGFUA= github.com/agnivade/levenshtein v1.1.1 h1:QY8M92nrzkmr798gCo3kmMyqXFzdQVpxLlGPRBij0P8= github.com/agnivade/levenshtein v1.1.1/go.mod h1:veldBMzWxcCG2ZvUTKD2kJNRdCk5hVbJomOvKkmgYbo= github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883 h1:bvNMNQO63//z+xNgfBlViaCIJKLlCJ6/fmUseuG0wVQ= |