Compare commits
7 Commits
13596f7cb6
...
45a6a23adb
| Author | SHA1 | Date | |
|---|---|---|---|
| 45a6a23adb | |||
|
|
0849a46b78 | ||
|
|
fad39c2e21 | ||
|
|
fd3c63c1cb | ||
|
|
6f58b57372 | ||
|
|
be0b580c19 | ||
|
|
031ae205da |
2
.github/workflows/deploy.yml
vendored
2
.github/workflows/deploy.yml
vendored
@ -25,4 +25,4 @@ jobs:
|
|||||||
context: .
|
context: .
|
||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
push: true
|
push: true
|
||||||
tags: azpect3120/option.gophernest:latest
|
tags: azpect3120/potion.gophernest:latest
|
||||||
|
|||||||
@ -1,13 +1,13 @@
|
|||||||
# Fetch stage
|
# Fetch stage
|
||||||
FROM golang:latest AS fetch-stage
|
FROM golang:latest AS fetch-stage
|
||||||
|
|
||||||
COPY go.mod go.sum /app
|
COPY . /app
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
RUN go mod tidy
|
||||||
RUN go mod download
|
RUN go mod download
|
||||||
|
|
||||||
|
|
||||||
# Generate stage
|
# Generate stage
|
||||||
FROM ghcr.io/a-h/templ:latest AS generate-stage
|
FROM ghcr.io/a-h/templ:latest AS generate-stage
|
||||||
|
|
||||||
@ -35,6 +35,9 @@ COPY --from=tailwind-build-stage /app /app
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
RUN go mod tidy
|
||||||
|
RUN go mod download
|
||||||
|
|
||||||
RUN CGO_ENABLED=0 GOOS=linux go build -o /entrypoint /app/cmd/web/main.go
|
RUN CGO_ENABLED=0 GOOS=linux go build -o /entrypoint /app/cmd/web/main.go
|
||||||
|
|
||||||
# Deploy.
|
# Deploy.
|
||||||
|
|||||||
2
go.mod
2
go.mod
@ -3,7 +3,7 @@ module github.com/haydenhargreaves/Potion
|
|||||||
go 1.24.3
|
go 1.24.3
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/a-h/templ v0.3.898
|
github.com/a-h/templ v0.3.920
|
||||||
github.com/a-h/templ/examples/integration-gin v0.0.0-20250610141150-9b34663a6ef0
|
github.com/a-h/templ/examples/integration-gin v0.0.0-20250610141150-9b34663a6ef0
|
||||||
github.com/gin-contrib/cors v1.7.5
|
github.com/gin-contrib/cors v1.7.5
|
||||||
github.com/gin-gonic/gin v1.10.1
|
github.com/gin-gonic/gin v1.10.1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user