Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b1859c15ce | |||
| 6085cc05dc | |||
| bcf2d60da6 | |||
| f4fdb89ba4 |
@@ -50,9 +50,9 @@ jobs:
|
|||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: .turbo
|
path: .turbo
|
||||||
key: ${{ runner.os }}-turbo-${{ github.ref_name }}-${{ github.sha }}
|
key: ${{ runner.os }}-turbo-global-${{ github.sha }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-turbo-${{ github.ref_name }}-
|
${{ runner.os }}-turbo-global-
|
||||||
${{ runner.os }}-turbo-
|
${{ runner.os }}-turbo-
|
||||||
|
|
||||||
- name: 🧪 QA Checks
|
- name: 🧪 QA Checks
|
||||||
|
|||||||
@@ -175,9 +175,9 @@ jobs:
|
|||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: .turbo
|
path: .turbo
|
||||||
key: ${{ runner.os }}-turbo-${{ github.ref_name }}-${{ github.sha }}
|
key: ${{ runner.os }}-turbo-global-${{ github.sha }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-turbo-${{ github.ref_name }}-
|
${{ runner.os }}-turbo-global-
|
||||||
${{ runner.os }}-turbo-
|
${{ runner.os }}-turbo-
|
||||||
|
|
||||||
- name: 🔒 Security Audit
|
- name: 🔒 Security Audit
|
||||||
@@ -212,8 +212,6 @@ jobs:
|
|||||||
push: true
|
push: true
|
||||||
provenance: false
|
provenance: false
|
||||||
platforms: linux/arm64
|
platforms: linux/arm64
|
||||||
cache-from: type=gha,scope=nextjs-build-${{ needs.prepare.outputs.target }}
|
|
||||||
cache-to: type=gha,mode=max,scope=nextjs-build-${{ needs.prepare.outputs.target }}
|
|
||||||
build-args: |
|
build-args: |
|
||||||
NEXT_PUBLIC_BASE_URL=${{ needs.prepare.outputs.next_public_url }}
|
NEXT_PUBLIC_BASE_URL=${{ needs.prepare.outputs.next_public_url }}
|
||||||
NEXT_PUBLIC_TARGET=${{ needs.prepare.outputs.target }}
|
NEXT_PUBLIC_TARGET=${{ needs.prepare.outputs.target }}
|
||||||
@@ -394,7 +392,7 @@ jobs:
|
|||||||
name: 🧪 Smoke Test
|
name: 🧪 Smoke Test
|
||||||
needs: [prepare, deploy]
|
needs: [prepare, deploy]
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
if: needs.deploy.result == 'success'
|
if: needs.deploy.result == 'success' && github.ref_type != 'tag'
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container:
|
container:
|
||||||
image: catthehacker/ubuntu:act-latest
|
image: catthehacker/ubuntu:act-latest
|
||||||
@@ -427,7 +425,7 @@ jobs:
|
|||||||
name: ⚡ Lighthouse
|
name: ⚡ Lighthouse
|
||||||
needs: [prepare, deploy]
|
needs: [prepare, deploy]
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
if: success() && needs.prepare.outputs.target != 'skip'
|
if: success() && needs.prepare.outputs.target != 'skip' && github.ref_type != 'tag'
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container:
|
container:
|
||||||
image: catthehacker/ubuntu:act-latest
|
image: catthehacker/ubuntu:act-latest
|
||||||
@@ -502,7 +500,7 @@ jobs:
|
|||||||
name: ♿ WCAG
|
name: ♿ WCAG
|
||||||
needs: [prepare, deploy, smoke_test]
|
needs: [prepare, deploy, smoke_test]
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
if: success() && needs.prepare.outputs.target != 'skip'
|
if: success() && needs.prepare.outputs.target != 'skip' && github.ref_type != 'tag'
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container:
|
container:
|
||||||
image: catthehacker/ubuntu:act-latest
|
image: catthehacker/ubuntu:act-latest
|
||||||
@@ -584,7 +582,7 @@ jobs:
|
|||||||
name: 🛡️ Quality Gates
|
name: 🛡️ Quality Gates
|
||||||
needs: [prepare, deploy, smoke_test]
|
needs: [prepare, deploy, smoke_test]
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
if: success() && needs.prepare.outputs.target != 'skip'
|
if: success() && needs.prepare.outputs.target != 'skip' && github.ref_type != 'tag'
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container:
|
container:
|
||||||
image: catthehacker/ubuntu:act-latest
|
image: catthehacker/ubuntu:act-latest
|
||||||
|
|||||||
@@ -41,10 +41,7 @@ CMD ["pnpm", "dev:local"]
|
|||||||
# Build application
|
# Build application
|
||||||
# Stage 3: Builder (Production)
|
# Stage 3: Builder (Production)
|
||||||
FROM base AS builder
|
FROM base AS builder
|
||||||
RUN --mount=type=cache,target=/app/.next/cache,id=nextjs-cache \
|
RUN pnpm build
|
||||||
pnpm build && \
|
|
||||||
mkdir -p /app/.next-cache-tmp && \
|
|
||||||
cp -r /app/.next/cache/* /app/.next-cache-tmp/ || true
|
|
||||||
|
|
||||||
# Stage 3: Runner
|
# Stage 3: Runner
|
||||||
FROM registry.infra.mintel.me/mintel/runtime:v1.7.10 AS runner
|
FROM registry.infra.mintel.me/mintel/runtime:v1.7.10 AS runner
|
||||||
@@ -63,6 +60,6 @@ ENV NODE_ENV=production
|
|||||||
COPY --from=builder --chown=nextjs:nodejs /app/public ./public
|
COPY --from=builder --chown=nextjs:nodejs /app/public ./public
|
||||||
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
|
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
|
||||||
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
|
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
|
||||||
COPY --from=builder --chown=nextjs:nodejs /app/.next-cache-tmp ./.next/cache
|
COPY --from=builder --chown=nextjs:nodejs /app/.next/cache ./.next/cache
|
||||||
|
|
||||||
CMD ["node", "server.js"]
|
CMD ["node", "server.js"]
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
@import 'tailwindcss';
|
@import 'tailwindcss';
|
||||||
|
@config "../tailwind.config.cjs";
|
||||||
|
|
||||||
@theme {
|
@theme {
|
||||||
--font-sans:
|
--font-sans:
|
||||||
@@ -46,6 +47,18 @@
|
|||||||
--animate-slight-fade-in-from-bottom: slight-fade-in-from-bottom 0.8s
|
--animate-slight-fade-in-from-bottom: slight-fade-in-from-bottom 0.8s
|
||||||
cubic-bezier(0.16, 1, 0.3, 1) forwards;
|
cubic-bezier(0.16, 1, 0.3, 1) forwards;
|
||||||
--animate-gradient-x: gradient-x 15s ease infinite;
|
--animate-gradient-x: gradient-x 15s ease infinite;
|
||||||
|
--animate-draw-stroke: draw-stroke 1.8s ease-in-out 0.5s forwards;
|
||||||
|
|
||||||
|
@keyframes draw-stroke {
|
||||||
|
from {
|
||||||
|
stroke-dasharray: 1;
|
||||||
|
stroke-dashoffset: 1;
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
stroke-dasharray: 1;
|
||||||
|
stroke-dashoffset: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@keyframes gradient-x {
|
@keyframes gradient-x {
|
||||||
0%,
|
0%,
|
||||||
|
|||||||
32
turbo.json
32
turbo.json
@@ -1,19 +1,51 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://turbo.build/schema.json",
|
"$schema": "https://turbo.build/schema.json",
|
||||||
|
"globalDependencies": [
|
||||||
|
"pnpm-lock.yaml",
|
||||||
|
".gitea/workflows/ci.yml",
|
||||||
|
".gitea/workflows/deploy.yml"
|
||||||
|
],
|
||||||
"tasks": {
|
"tasks": {
|
||||||
"lint": {
|
"lint": {
|
||||||
|
"inputs": [
|
||||||
|
"app/**/*.tsx",
|
||||||
|
"app/**/*.ts",
|
||||||
|
"components/**/*.tsx",
|
||||||
|
"components/**/*.ts",
|
||||||
|
"lib/**/*.ts",
|
||||||
|
"eslint.config.mjs"
|
||||||
|
],
|
||||||
"outputs": []
|
"outputs": []
|
||||||
},
|
},
|
||||||
"typecheck": {
|
"typecheck": {
|
||||||
|
"inputs": [
|
||||||
|
"app/**/*.tsx",
|
||||||
|
"app/**/*.ts",
|
||||||
|
"components/**/*.tsx",
|
||||||
|
"components/**/*.ts",
|
||||||
|
"lib/**/*.ts",
|
||||||
|
"tsconfig.json"
|
||||||
|
],
|
||||||
"outputs": []
|
"outputs": []
|
||||||
},
|
},
|
||||||
"test": {
|
"test": {
|
||||||
|
"inputs": [
|
||||||
|
"app/**/*.tsx",
|
||||||
|
"app/**/*.ts",
|
||||||
|
"components/**/*.tsx",
|
||||||
|
"components/**/*.ts",
|
||||||
|
"lib/**/*.ts",
|
||||||
|
"tests/**/*.ts",
|
||||||
|
"vitest.config.mts"
|
||||||
|
],
|
||||||
"outputs": []
|
"outputs": []
|
||||||
},
|
},
|
||||||
"check:spell": {
|
"check:spell": {
|
||||||
|
"inputs": ["content/**/*.{md,mdx}", "app/**/*.tsx", "components/**/*.tsx", "cspell.json"],
|
||||||
"outputs": []
|
"outputs": []
|
||||||
},
|
},
|
||||||
"check:mdx": {
|
"check:mdx": {
|
||||||
|
"inputs": ["content/**/*.{md,mdx}", "scripts/validate-mdx.mjs"],
|
||||||
"outputs": []
|
"outputs": []
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user