Compare commits
16 Commits
v1.0.1
...
d97707387d
| Author | SHA1 | Date | |
|---|---|---|---|
| d97707387d | |||
| 8bb782287e | |||
| 56ec85c17e | |||
| 9412c20248 | |||
| 65f97d2707 | |||
| 564070b270 | |||
| ad90451846 | |||
| 22c2ef1b26 | |||
| 301120c174 | |||
| 1a0ffead5a | |||
| 719956341c | |||
| 2a1e6dc8a4 | |||
| 6b19a55655 | |||
| a2b9d445e4 | |||
| a14306cce4 | |||
| 43f42a8274 |
@@ -18,7 +18,7 @@ jobs:
|
|||||||
packages: write
|
packages: write
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
||||||
with:
|
with:
|
||||||
# Full history and tags are required to derive the next version
|
# Full history and tags are required to derive the next version
|
||||||
# from the conventional-commit messages since the last release.
|
# from the conventional-commit messages since the last release.
|
||||||
@@ -94,21 +94,21 @@ jobs:
|
|||||||
echo "Computed bump=${bump}, release=${release}, base=${base}"
|
echo "Computed bump=${bump}, release=${release}, base=${base}"
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v3
|
uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3
|
||||||
|
|
||||||
- name: Set up Buildx
|
- name: Set up Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4
|
||||||
|
|
||||||
- name: Log in to the Gitea container registry
|
- name: Log in to the Gitea container registry
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
|
||||||
with:
|
with:
|
||||||
registry: ${{ env.REGISTRY }}
|
registry: ${{ env.REGISTRY }}
|
||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
password: ${{ secrets.PACKAGES_TOKEN }}
|
password: ${{ secrets.PACKAGES_TOKEN }}
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
# Lightweight, non-root nginx serving the static site.
|
# Lightweight, non-root nginx serving the static site.
|
||||||
# Runs as user "nginx" and listens on 8080, ready to sit behind an
|
# Runs as user "nginx" and listens on 8080, ready to sit behind an
|
||||||
# external reverse proxy that terminates TLS and forwards requests.
|
# external reverse proxy that terminates TLS and forwards requests.
|
||||||
FROM nginxinc/nginx-unprivileged:1.27-alpine-slim
|
FROM nginxinc/nginx-unprivileged:1.31-alpine-slim@sha256:6616de6eaa82bc2ee3541fa287a8fca7dc7271e6374e9402014dbd13f4a980ae
|
||||||
|
|
||||||
COPY default.conf /etc/nginx/conf.d/default.conf
|
COPY default.conf /etc/nginx/conf.d/default.conf
|
||||||
COPY --chown=nginx:nginx index.html styles.css script.js messages.js /usr/share/nginx/html/
|
COPY --chown=nginx:nginx index.html styles.css script.js messages.js /usr/share/nginx/html/
|
||||||
|
|||||||
+9
-4
@@ -11,8 +11,13 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
const MESSAGES = [
|
const MESSAGES = [
|
||||||
"PLACEHOLDER: write your first reason here",
|
"Maggie came back, she was unimpressed",
|
||||||
"PLACEHOLDER: write another reason here",
|
"They mixed up the B23s and the 2024 tube stock",
|
||||||
// Add as many entries as you like, one per line:
|
"The computer went on strike",
|
||||||
// "Your reason here",
|
"Leaves on the track",
|
||||||
|
"Escalators broke at Cutty Sark",
|
||||||
|
"EHRC decided it was woke",
|
||||||
|
"JK Rowling",
|
||||||
|
"Kaiju",
|
||||||
|
"28 Days Later happened",
|
||||||
];
|
];
|
||||||
|
|||||||
+14
-3
@@ -10,20 +10,31 @@
|
|||||||
"semanticCommitType": "fix",
|
"semanticCommitType": "fix",
|
||||||
"semanticCommitScope": "deps",
|
"semanticCommitScope": "deps",
|
||||||
"github-actions": {
|
"github-actions": {
|
||||||
"fileMatch": ["^\\.gitea/workflows/[^/]+\\.ya?ml$"]
|
"managerFilePatterns": ["/^\\.gitea/workflows/[^/]+\\.ya?ml$/"]
|
||||||
},
|
},
|
||||||
"packageRules": [
|
"packageRules": [
|
||||||
{
|
{
|
||||||
"description": "Group nginx base image updates",
|
"description": "Group nginx base image updates",
|
||||||
"matchManagers": ["dockerfile"],
|
"matchManagers": ["dockerfile"],
|
||||||
"groupName": "docker base image"
|
"groupName": "docker base image"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Commit every update as fix(deps) so each merged Renovate PR triggers a patch release. config:recommended pulls in :semanticPrefixFixDepsChoreOthers, which forces non-npm updates (Docker, Actions) to chore and would otherwise produce no release.",
|
||||||
|
"matchPackageNames": ["*"],
|
||||||
|
"semanticCommitType": "fix"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Auto-merge patch and minor updates once checks pass.",
|
||||||
|
"matchUpdateTypes": ["patch", "minor"],
|
||||||
|
"automerge": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"platformAutomerge": true,
|
||||||
"customManagers": [
|
"customManagers": [
|
||||||
{
|
{
|
||||||
"customType": "regex",
|
"customType": "regex",
|
||||||
"description": "Update HTML dependencies annotated with a renovate comment, e.g. <!-- renovate: datasource=npm depName=bootstrap --> before the versioned URL",
|
"description": "Update HTML dependencies annotated with a renovate comment, e.g. <!-- renovate: datasource=npm depName=bootstrap --> before the versioned URL",
|
||||||
"fileMatch": ["\\.html$"],
|
"managerFilePatterns": ["/\\.html$/"],
|
||||||
"matchStrings": [
|
"matchStrings": [
|
||||||
"datasource=(?<datasource>\\S+) depName=(?<depName>\\S+)( versioning=(?<versioning>\\S+))?[\\s\\S]*?(?<currentValue>v?\\d+\\.\\d+\\.\\d+[\\w.-]*)"
|
"datasource=(?<datasource>\\S+) depName=(?<depName>\\S+)( versioning=(?<versioning>\\S+))?[\\s\\S]*?(?<currentValue>v?\\d+\\.\\d+\\.\\d+[\\w.-]*)"
|
||||||
]
|
]
|
||||||
@@ -31,7 +42,7 @@
|
|||||||
{
|
{
|
||||||
"customType": "regex",
|
"customType": "regex",
|
||||||
"description": "Auto-detect versioned jsDelivr / unpkg npm assets in HTML",
|
"description": "Auto-detect versioned jsDelivr / unpkg npm assets in HTML",
|
||||||
"fileMatch": ["\\.html$"],
|
"managerFilePatterns": ["/\\.html$/"],
|
||||||
"matchStrings": [
|
"matchStrings": [
|
||||||
"https://cdn\\.jsdelivr\\.net/npm/(?<depName>@?[^@/]+(?:/[^@/]+)?)@(?<currentValue>\\d[^/\"']+)",
|
"https://cdn\\.jsdelivr\\.net/npm/(?<depName>@?[^@/]+(?:/[^@/]+)?)@(?<currentValue>\\d[^/\"']+)",
|
||||||
"https://unpkg\\.com/(?<depName>@?[^@/]+(?:/[^@/]+)?)@(?<currentValue>\\d[^/\"']+)"
|
"https://unpkg\\.com/(?<depName>@?[^@/]+(?:/[^@/]+)?)@(?<currentValue>\\d[^/\"']+)"
|
||||||
|
|||||||
+18
-14
@@ -10,7 +10,6 @@
|
|||||||
/* Modern DLR — turquoise/teal */
|
/* Modern DLR — turquoise/teal */
|
||||||
[data-theme="modern"] {
|
[data-theme="modern"] {
|
||||||
--bg: #00afaa;
|
--bg: #00afaa;
|
||||||
--bg-accent: #007e7a;
|
|
||||||
--surface: #ffffff;
|
--surface: #ffffff;
|
||||||
--text: #ffffff;
|
--text: #ffffff;
|
||||||
--message: #ffffff;
|
--message: #ffffff;
|
||||||
@@ -20,14 +19,13 @@
|
|||||||
--button-active-text: #ffffff;
|
--button-active-text: #ffffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Original DLR — 1987 red and blue */
|
/* Original DLR — 1987 red, white and blue */
|
||||||
[data-theme="original"] {
|
[data-theme="original"] {
|
||||||
--bg: #002b5c;
|
--bg: #c8102e;
|
||||||
--bg-accent: #c8102e;
|
--surface: #002b5c;
|
||||||
--surface: #f5f0e1;
|
|
||||||
--text: #f5f0e1;
|
--text: #f5f0e1;
|
||||||
--message: #f5f0e1;
|
--message: #f5f0e1;
|
||||||
--button-bg: #c8102e;
|
--button-bg: #002b5c;
|
||||||
--button-text: #f5f0e1;
|
--button-text: #f5f0e1;
|
||||||
--button-active-bg: #f5f0e1;
|
--button-active-bg: #f5f0e1;
|
||||||
--button-active-text: #002b5c;
|
--button-active-text: #002b5c;
|
||||||
@@ -44,7 +42,7 @@ body {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
font-family: var(--font-stack);
|
font-family: var(--font-stack);
|
||||||
color: var(--text);
|
color: var(--text);
|
||||||
background: linear-gradient(135deg, var(--bg) 0%, var(--bg-accent) 100%);
|
background: var(--bg);
|
||||||
transition: background 0.4s ease, color 0.4s ease;
|
transition: background 0.4s ease, color 0.4s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -65,10 +63,13 @@ body {
|
|||||||
padding: 1.5rem;
|
padding: 1.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Segmented control: both options joined in one rounded container,
|
||||||
|
with the active segment filled. */
|
||||||
.theme-toggle {
|
.theme-toggle {
|
||||||
display: flex;
|
display: inline-flex;
|
||||||
gap: 0.5rem;
|
border: 2px solid var(--button-bg);
|
||||||
border: none;
|
border-radius: 999px;
|
||||||
|
overflow: hidden;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
@@ -77,19 +78,22 @@ body {
|
|||||||
font-family: inherit;
|
font-family: inherit;
|
||||||
font-size: 0.9rem;
|
font-size: 0.9rem;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
padding: 0.5rem 1rem;
|
padding: 0.5rem 1.1rem;
|
||||||
border: 2px solid var(--button-bg);
|
border: none;
|
||||||
border-radius: 999px;
|
|
||||||
background: transparent;
|
background: transparent;
|
||||||
color: var(--text);
|
color: var(--text);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: background 0.2s ease, color 0.2s ease;
|
transition: background 0.2s ease, color 0.2s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Divider between the two segments. */
|
||||||
|
.theme-button + .theme-button {
|
||||||
|
border-left: 2px solid var(--button-bg);
|
||||||
|
}
|
||||||
|
|
||||||
.theme-button[aria-pressed="true"] {
|
.theme-button[aria-pressed="true"] {
|
||||||
background: var(--button-active-bg);
|
background: var(--button-active-bg);
|
||||||
color: var(--button-active-text);
|
color: var(--button-active-text);
|
||||||
border-color: var(--button-active-bg);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.stage {
|
.stage {
|
||||||
|
|||||||
Reference in New Issue
Block a user