-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update project to be more consistent
- Loading branch information
Showing
31 changed files
with
263 additions
and
338 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,3 +58,4 @@ Icon | |
Network Trash Folder | ||
Temporary Items | ||
.apdisk | ||
output@dev.css |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
## Build | ||
FROM golang:1.22-alpine AS build | ||
|
||
ARG VERSION='dev' | ||
|
||
RUN apk update && apk add --no-cache curl | ||
|
||
RUN curl -sLO https://github.com/tailwindlabs/tailwindcss/releases/latest/download/tailwindcss-linux-x64 \ | ||
&& chmod +x tailwindcss-linux-x64 \ | ||
&& mv tailwindcss-linux-x64 /usr/local/bin/tailwindcss | ||
|
||
RUN go install github.com/a-h/templ/cmd/templ@v0.2.648 | ||
|
||
WORKDIR /app | ||
|
||
COPY ./ /app | ||
|
||
RUN templ generate -path ./components \ | ||
&& tailwindcss -i ./styles/input.css -o ./dist/assets/css/output@${VERSION}.css --minify | ||
|
||
RUN go build -ldflags="-s -w -X version.Value=${VERSION}" -o pathwise | ||
|
||
## Deploy | ||
FROM gcr.io/distroless/static-debian12 | ||
|
||
WORKDIR / | ||
|
||
COPY --from=build /app/pathwise /pathwise | ||
|
||
EXPOSE 8080 | ||
|
||
CMD ["/pathwise"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
package components | ||
|
||
templ Head(version string) { | ||
import "github.com/Piszmog/pathwise/version" | ||
|
||
templ Head() { | ||
<head> | ||
<meta charset="UTF-8"/> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> | ||
<meta name="description" content="Track your job applications"/> | ||
<title>Pathwise</title> | ||
<script src="/assets/js/htmx@1.9.8.min.js"></script> | ||
<script src="/assets/js/ext-response-targets@1.9.8.min.js"></script> | ||
<link href={ "/assets/css/output@" + version + ".css" } rel="stylesheet"/> | ||
<link href={ "/assets/css/output@" + version.Value + ".css" } rel="stylesheet"/> | ||
</head> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.