Compare commits

..

9 Commits

Author SHA1 Message Date
a70e849b98 enable traefik
All checks were successful
Build and Push Container / Build App (push) Successful in 1m38s
Build and Push Container / Publish App (push) Successful in 3m13s
2026-01-17 10:14:03 +11:00
cc3b7f8561 fix revalidate path
All checks were successful
Build and Push Container / Build App (push) Successful in 59s
Build and Push Container / Publish App (push) Successful in 3m9s
2026-01-16 17:43:32 +11:00
93bbf398dd fix nomad
All checks were successful
Build and Push Container / Build App (push) Successful in 57s
Build and Push Container / Publish App (push) Successful in 3m6s
2026-01-16 17:17:24 +11:00
c9066c603b fix file path
Some checks failed
Build and Push Container / Build App (push) Successful in 57s
Build and Push Container / Publish App (push) Failing after 2m39s
2026-01-16 17:08:01 +11:00
b64e017813 pnpm setup step
Some checks failed
Build and Push Container / Build App (push) Successful in 57s
Build and Push Container / Publish App (push) Failing after 2m45s
2026-01-16 17:03:49 +11:00
2ef158fda0 add secret to dockerfile
Some checks failed
Build and Push Container / Build App (push) Successful in 54s
Build and Push Container / Publish App (push) Failing after 2m18s
2026-01-16 16:21:02 +11:00
75a38ada5e add dummy secret for build
Some checks failed
Build and Push Container / Build App (push) Successful in 1m0s
Build and Push Container / Publish App (push) Failing after 2m5s
2026-01-16 16:16:00 +11:00
1db3f47b1c Merge pull request 'feat/infrastructure-upgrade' (#3) from feat/infrastructure-upgrade into main
Some checks failed
Build and Push Container / Build App (push) Successful in 1m34s
Build and Push Container / Publish App (push) Failing after 2m1s
Reviewed-on: #3
2026-01-16 16:11:45 +11:00
03afbd4c2b fix migration script
All checks were successful
Build and Push Container / Build App (push) Successful in 1m24s
Build and Push Container / Publish App (push) Has been skipped
Build and Push Container / Build App (pull_request) Successful in 1m32s
Build and Push Container / Publish App (pull_request) Has been skipped
2026-01-16 16:11:22 +11:00
4 changed files with 16 additions and 10 deletions

View File

@@ -74,12 +74,16 @@ jobs:
labels: ${{ steps.metadata.outputs.labels }}
build-args: |
DATABASE_URL=${{ secrets.DATABASE_URL }}
PAYLOAD_SECRET=BUILD
- name: Setup PNPM
uses: pnpm/action-setup@v4
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run Migrations
run: pnpm --filter amoc payload migrate
run: pnpm payload migrate
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}

View File

@@ -28,6 +28,8 @@ ARG NODE_ENV=production
ENV NODE_ENV=$NODE_ENV
ARG DATABASE_URL
ENV DATABASE_URL=$DATABASE_URL
ARG PAYLOAD_SECRET
ENV PAYLOAD_SECRET=$PAYLOAD_SECRET
ENV NEXT_TELEMETRY_DISABLED=1
RUN \

View File

@@ -12,7 +12,7 @@ job "portfolio_v2" {
version = var.deployment_version
}
group "portfolio.v2" {
group "portfolio_v2" {
count = 1
network {
@@ -22,14 +22,14 @@ job "portfolio_v2" {
}
service {
name = "portfolio_v2"
name = "portfolio-v2"
port = "web"
# tags = [
# "traefik.enable=true",
# "traefik.http.routers.portfolio-v2.rule=Host(`liampietralla.com`)",
# "traefik.http.routers.portfolio-v2.entrypoints=websecure",
# "traefik.http.routers.portfolio-v2.tls.certresolver=letsencrypt"
# ]
tags = [
"traefik.enable=true",
"traefik.http.routers.portfolio-v2.rule=Host(`liampietralla.com`)",
"traefik.http.routers.portfolio-v2.entrypoints=websecure",
"traefik.http.routers.portfolio-v2.tls.certresolver=letsencrypt"
]
check {
type = "http"

View File

@@ -58,7 +58,7 @@ export const Home: GlobalConfig = {
hooks: {
afterChange: [
async () => {
revalidatePath("/projects");
revalidatePath("/");
}
],
}