Compare commits

...

7 Commits

Author SHA1 Message Date
45a6a23adb Merge pull request 'Merge in workflows and Dockerization' (#27) from dev into master
All checks were successful
Deploy application with Docker / build_and_deploy (push) Successful in 1m35s
Reviewed-on: #27
2025-07-21 21:33:13 -07:00
Hayden Hargreaves
0849a46b78 (FIX): Only running in master, not dev 2025-07-21 21:32:01 -07:00
Hayden Hargreaves
fad39c2e21 (FIX): Its working! But spelling error...
All checks were successful
Deploy application with Docker / build_and_deploy (push) Successful in 41s
2025-07-21 20:46:31 -07:00
Hayden Hargreaves
fd3c63c1cb Adding tidy and download later? Maybe I need to add go.sum to repo?
All checks were successful
Deploy application with Docker / build_and_deploy (push) Successful in 42s
2025-07-21 20:44:45 -07:00
Hayden Hargreaves
6f58b57372 (FIX): Trying again
Some checks failed
Deploy application with Docker / build_and_deploy (push) Failing after 15s
2025-07-21 20:40:50 -07:00
Hayden Hargreaves
be0b580c19 (FIX/TMP): Running actions in dev branch, temp.
Some checks failed
Deploy application with Docker / build_and_deploy (push) Failing after 16s
2025-07-21 20:31:50 -07:00
Hayden Hargreaves
031ae205da (FIX): Added tidy to the Dockerfile. Should work in actions 2025-07-21 20:30:42 -07:00
3 changed files with 7 additions and 4 deletions

View File

@ -25,4 +25,4 @@ jobs:
context: .
file: ./Dockerfile
push: true
tags: azpect3120/option.gophernest:latest
tags: azpect3120/potion.gophernest:latest

View File

@ -1,13 +1,13 @@
# Fetch stage
FROM golang:latest AS fetch-stage
COPY go.mod go.sum /app
COPY . /app
WORKDIR /app
RUN go mod tidy
RUN go mod download
# 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
RUN go mod tidy
RUN go mod download
RUN CGO_ENABLED=0 GOOS=linux go build -o /entrypoint /app/cmd/web/main.go
# Deploy.

2
go.mod
View File

@ -3,7 +3,7 @@ module github.com/haydenhargreaves/Potion
go 1.24.3
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/gin-contrib/cors v1.7.5
github.com/gin-gonic/gin v1.10.1