Compare commits
9 Commits
e15c6af515
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| a70e849b98 | |||
| cc3b7f8561 | |||
| 93bbf398dd | |||
| c9066c603b | |||
| b64e017813 | |||
| 2ef158fda0 | |||
| 75a38ada5e | |||
| 1db3f47b1c | |||
| 03afbd4c2b |
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@@ -74,12 +74,16 @@ jobs:
|
|||||||
labels: ${{ steps.metadata.outputs.labels }}
|
labels: ${{ steps.metadata.outputs.labels }}
|
||||||
build-args: |
|
build-args: |
|
||||||
DATABASE_URL=${{ secrets.DATABASE_URL }}
|
DATABASE_URL=${{ secrets.DATABASE_URL }}
|
||||||
|
PAYLOAD_SECRET=BUILD
|
||||||
|
|
||||||
|
- name: Setup PNPM
|
||||||
|
uses: pnpm/action-setup@v4
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install --frozen-lockfile
|
run: pnpm install --frozen-lockfile
|
||||||
|
|
||||||
- name: Run Migrations
|
- name: Run Migrations
|
||||||
run: pnpm --filter amoc payload migrate
|
run: pnpm payload migrate
|
||||||
env:
|
env:
|
||||||
DATABASE_URL: ${{ secrets.DATABASE_URL }}
|
DATABASE_URL: ${{ secrets.DATABASE_URL }}
|
||||||
|
|
||||||
|
|||||||
@@ -28,6 +28,8 @@ ARG NODE_ENV=production
|
|||||||
ENV NODE_ENV=$NODE_ENV
|
ENV NODE_ENV=$NODE_ENV
|
||||||
ARG DATABASE_URL
|
ARG DATABASE_URL
|
||||||
ENV DATABASE_URL=$DATABASE_URL
|
ENV DATABASE_URL=$DATABASE_URL
|
||||||
|
ARG PAYLOAD_SECRET
|
||||||
|
ENV PAYLOAD_SECRET=$PAYLOAD_SECRET
|
||||||
|
|
||||||
ENV NEXT_TELEMETRY_DISABLED=1
|
ENV NEXT_TELEMETRY_DISABLED=1
|
||||||
RUN \
|
RUN \
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ job "portfolio_v2" {
|
|||||||
version = var.deployment_version
|
version = var.deployment_version
|
||||||
}
|
}
|
||||||
|
|
||||||
group "portfolio.v2" {
|
group "portfolio_v2" {
|
||||||
count = 1
|
count = 1
|
||||||
|
|
||||||
network {
|
network {
|
||||||
@@ -22,14 +22,14 @@ job "portfolio_v2" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
service {
|
service {
|
||||||
name = "portfolio_v2"
|
name = "portfolio-v2"
|
||||||
port = "web"
|
port = "web"
|
||||||
# tags = [
|
tags = [
|
||||||
# "traefik.enable=true",
|
"traefik.enable=true",
|
||||||
# "traefik.http.routers.portfolio-v2.rule=Host(`liampietralla.com`)",
|
"traefik.http.routers.portfolio-v2.rule=Host(`liampietralla.com`)",
|
||||||
# "traefik.http.routers.portfolio-v2.entrypoints=websecure",
|
"traefik.http.routers.portfolio-v2.entrypoints=websecure",
|
||||||
# "traefik.http.routers.portfolio-v2.tls.certresolver=letsencrypt"
|
"traefik.http.routers.portfolio-v2.tls.certresolver=letsencrypt"
|
||||||
# ]
|
]
|
||||||
|
|
||||||
check {
|
check {
|
||||||
type = "http"
|
type = "http"
|
||||||
@@ -58,7 +58,7 @@ export const Home: GlobalConfig = {
|
|||||||
hooks: {
|
hooks: {
|
||||||
afterChange: [
|
afterChange: [
|
||||||
async () => {
|
async () => {
|
||||||
revalidatePath("/projects");
|
revalidatePath("/");
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user