Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 86f14ad68a |
@@ -1,10 +1,31 @@
|
||||
name: Build and publish container
|
||||
|
||||
# Only run when files that affect the built image change. Updates to CI
|
||||
# config, Renovate config, or docs (e.g. a Renovate bump of the checkout
|
||||
# action) do not change the image and so do not trigger a build or release.
|
||||
# Use workflow_dispatch to run manually after a pipeline change.
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
- 'Dockerfile'
|
||||
- 'default.conf'
|
||||
- 'index.html'
|
||||
- 'styles.css'
|
||||
- 'script.js'
|
||||
- 'messages.js'
|
||||
- '.dockerignore'
|
||||
pull_request:
|
||||
branches: [main]
|
||||
paths:
|
||||
- 'Dockerfile'
|
||||
- 'default.conf'
|
||||
- 'index.html'
|
||||
- 'styles.css'
|
||||
- 'script.js'
|
||||
- 'messages.js'
|
||||
- '.dockerignore'
|
||||
workflow_dispatch:
|
||||
|
||||
defaults:
|
||||
run:
|
||||
@@ -94,7 +115,7 @@ jobs:
|
||||
echo "Computed bump=${bump}, release=${release}, base=${base}"
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@06116385d9baf250c9f4dcb4858b16962ea869c3 # v4
|
||||
uses: docker/setup-qemu-action@v3
|
||||
|
||||
- name: Set up Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
+3
-14
@@ -10,31 +10,20 @@
|
||||
"semanticCommitType": "fix",
|
||||
"semanticCommitScope": "deps",
|
||||
"github-actions": {
|
||||
"managerFilePatterns": ["/^\\.gitea/workflows/[^/]+\\.ya?ml$/"]
|
||||
"fileMatch": ["^\\.gitea/workflows/[^/]+\\.ya?ml$"]
|
||||
},
|
||||
"packageRules": [
|
||||
{
|
||||
"description": "Group nginx base image updates",
|
||||
"matchManagers": ["dockerfile"],
|
||||
"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": [
|
||||
{
|
||||
"customType": "regex",
|
||||
"description": "Update HTML dependencies annotated with a renovate comment, e.g. <!-- renovate: datasource=npm depName=bootstrap --> before the versioned URL",
|
||||
"managerFilePatterns": ["/\\.html$/"],
|
||||
"fileMatch": ["\\.html$"],
|
||||
"matchStrings": [
|
||||
"datasource=(?<datasource>\\S+) depName=(?<depName>\\S+)( versioning=(?<versioning>\\S+))?[\\s\\S]*?(?<currentValue>v?\\d+\\.\\d+\\.\\d+[\\w.-]*)"
|
||||
]
|
||||
@@ -42,7 +31,7 @@
|
||||
{
|
||||
"customType": "regex",
|
||||
"description": "Auto-detect versioned jsDelivr / unpkg npm assets in HTML",
|
||||
"managerFilePatterns": ["/\\.html$/"],
|
||||
"fileMatch": ["\\.html$"],
|
||||
"matchStrings": [
|
||||
"https://cdn\\.jsdelivr\\.net/npm/(?<depName>@?[^@/]+(?:/[^@/]+)?)@(?<currentValue>\\d[^/\"']+)",
|
||||
"https://unpkg\\.com/(?<depName>@?[^@/]+(?:/[^@/]+)?)@(?<currentValue>\\d[^/\"']+)"
|
||||
|
||||
+13
-19
@@ -21,14 +21,14 @@
|
||||
|
||||
/* Original DLR — 1987 red, white and blue */
|
||||
[data-theme="original"] {
|
||||
--bg: #c8102e;
|
||||
--bg: #f5f0e1;
|
||||
--surface: #002b5c;
|
||||
--text: #f5f0e1;
|
||||
--message: #f5f0e1;
|
||||
--button-bg: #002b5c;
|
||||
--text: #002b5c;
|
||||
--message: #002b5c;
|
||||
--button-bg: #c8102e;
|
||||
--button-text: #f5f0e1;
|
||||
--button-active-bg: #f5f0e1;
|
||||
--button-active-text: #002b5c;
|
||||
--button-active-bg: #002b5c;
|
||||
--button-active-text: #f5f0e1;
|
||||
}
|
||||
|
||||
* {
|
||||
@@ -63,13 +63,10 @@ body {
|
||||
padding: 1.5rem;
|
||||
}
|
||||
|
||||
/* Segmented control: both options joined in one rounded container,
|
||||
with the active segment filled. */
|
||||
.theme-toggle {
|
||||
display: inline-flex;
|
||||
border: 2px solid var(--button-bg);
|
||||
border-radius: 999px;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
border: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
@@ -78,22 +75,19 @@ body {
|
||||
font-family: inherit;
|
||||
font-size: 0.9rem;
|
||||
font-weight: 600;
|
||||
padding: 0.5rem 1.1rem;
|
||||
border: none;
|
||||
padding: 0.5rem 1rem;
|
||||
border: 2px solid var(--button-bg);
|
||||
border-radius: 999px;
|
||||
background: transparent;
|
||||
color: var(--text);
|
||||
cursor: pointer;
|
||||
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"] {
|
||||
background: var(--button-active-bg);
|
||||
color: var(--button-active-text);
|
||||
border-color: var(--button-active-bg);
|
||||
}
|
||||
|
||||
.stage {
|
||||
|
||||
Reference in New Issue
Block a user