Compare commits
14
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bd42c08538 | ||
|
|
651ee66baf | ||
|
|
6e06010f92 | ||
|
|
db05596242 | ||
|
|
c8513e43b4 | ||
|
|
64b0bc4300 | ||
|
|
f17c9fc3a5 | ||
|
|
729928ce6c | ||
|
|
cccdec850b | ||
|
|
21aa823e8e | ||
|
|
fa7f8487f7 | ||
|
|
c2241e16f2 | ||
|
|
9ee22c35f9 | ||
|
|
447bdceb7d |
@@ -4,23 +4,20 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
tags: ["v*"]
|
tags: ["v*"]
|
||||||
|
paths-ignore: ["**.md"]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# Tags and build steps are shared across repos, see traberph/ci.
|
# Tags and build steps are shared across repos, see traberph/ci.
|
||||||
image:
|
image:
|
||||||
uses: traberph/ci/.gitea/workflows/image.yaml@main
|
uses: traberph/ci/.gitea/workflows/image.yaml@v1.0.3
|
||||||
with:
|
with:
|
||||||
project: public
|
project: public
|
||||||
image: homepage
|
image: homepage
|
||||||
# SITE_URL is compiled in (canonical URLs); HARBOR_URL is the default Harbor
|
# SITE_URL is compiled in (canonical URLs); HARBOR_URL is the default Harbor
|
||||||
# instance, still overridable at runtime. Override either with a repository variable.
|
|
||||||
build-args: |
|
build-args: |
|
||||||
SITE_URL=${{ vars.SITE_URL || 'https://traberph.de' }}
|
SITE_URL=${{ vars.SITE_URL || 'https://traberph.de' }}
|
||||||
HARBOR_URL=${{ vars.HARBOR_URL || 'https://registry.traberph.de' }}
|
HARBOR_URL=${{ vars.HARBOR_URL || 'https://registry.traberph.de' }}
|
||||||
secrets:
|
secrets:
|
||||||
registry-username: ${{ secrets.REGISTRY_USERNAME }}
|
registry-username: ${{ secrets.REGISTRY_USERNAME }}
|
||||||
registry-token: ${{ secrets.REGISTRY_TOKEN }}
|
registry-token: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
# Public image, so it is mirrored to Docker Hub too.
|
|
||||||
dockerhub-username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
||||||
dockerhub-token: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
||||||
|
|||||||
+2
-2
@@ -1,7 +1,7 @@
|
|||||||
# syntax=docker/dockerfile:1.28
|
# syntax=docker/dockerfile:1.28
|
||||||
|
|
||||||
# The build output is platform-independent, so build natively (no QEMU) for multi-arch images.
|
# The build output is platform-independent, so build natively (no QEMU) for multi-arch images.
|
||||||
FROM --platform=$BUILDPLATFORM node:24-alpine AS build
|
FROM --platform=$BUILDPLATFORM node:26-alpine AS build
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN corepack enable
|
RUN corepack enable
|
||||||
ENV ASTRO_TELEMETRY_DISABLED=1
|
ENV ASTRO_TELEMETRY_DISABLED=1
|
||||||
@@ -13,7 +13,7 @@ COPY . .
|
|||||||
ARG SITE_URL
|
ARG SITE_URL
|
||||||
RUN pnpm build
|
RUN pnpm build
|
||||||
|
|
||||||
FROM node:24-alpine
|
FROM node:26-alpine
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ENV NODE_ENV=production HOST=0.0.0.0 PORT=8080
|
ENV NODE_ENV=production HOST=0.0.0.0 PORT=8080
|
||||||
# Default Harbor instance; still overridable with `-e HARBOR_URL=...` at runtime.
|
# Default Harbor instance; still overridable with `-e HARBOR_URL=...` at runtime.
|
||||||
|
|||||||
+1
-1
@@ -28,5 +28,5 @@
|
|||||||
"typescript": "^6.0.3"
|
"typescript": "^6.0.3"
|
||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
"packageManager": "pnpm@12.13.0"
|
"packageManager": "pnpm@12.14.0"
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
+283
-291
File diff suppressed because it is too large
Load Diff
@@ -23,6 +23,12 @@
|
|||||||
"matchPackageNames": ["astro", "@astrojs/**"],
|
"matchPackageNames": ["astro", "@astrojs/**"],
|
||||||
"matchUpdateTypes": ["minor", "patch"],
|
"matchUpdateTypes": ["minor", "patch"],
|
||||||
"groupName": "astro"
|
"groupName": "astro"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "The shared image workflow lives on this Gitea, not on github.com",
|
||||||
|
"matchDepNames": ["traberph/ci"],
|
||||||
|
"overrideDatasource": "gitea-tags",
|
||||||
|
"registryUrls": ["https://git.traberph.de"]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"lockFileMaintenance": {
|
"lockFileMaintenance": {
|
||||||
|
|||||||
Reference in New Issue
Block a user