Author SHA1 Message Date
fraujulian b76d612d55 ci: share image and release actions
CI / javascript (push) Successful in 8s
CI / docker (push) Successful in 1m1s
2026-10-02 15:08:27 +02:00
fraujulian 8dc7ad3d90 ci: use dev image tag
CI / javascript (push) Successful in 26s
CI / docker (push) Successful in 38s
2026-10-02 14:54:00 +02:00
fraujulian 0c605c4dfb ci: align CD workflow names and image tags
CI / javascript (push) Successful in 3s
CI / docker (push) Successful in 6s
2026-10-02 14:41:42 +02:00
fraujulian 2a063481a6 docs: reorganize project README
CI / javascript (push) Successful in 13s
CI / docker (push) Successful in 12s
2026-10-02 13:35:38 +02:00
fraujulian 2fbeeef59d ci: rename release actions to CD 2026-10-02 13:35:38 +02:00
fraujulian 84f0f43ae8 build: update dependencies to secure releases
CI / javascript (push) Successful in 19s
CI / docker (push) Successful in 26s
2026-10-02 12:33:23 +02:00
fraujulian 6e6e49a2d4 ci: make production release manual
CI / javascript (push) Successful in 4s
CI / docker (push) Successful in 13s
2026-10-02 11:51:38 +02:00
fraujulian 46b1dc94e1 ci: schedule development image releases 2026-10-02 11:51:38 +02:00
fraujulian e567811dfb ci: add parallel validation workflow 2026-10-02 11:51:37 +02:00
fraujulian f0fe1bb4e9 fix: correct migrated repository links
Build Docker Image - Dev / docker (push) Failing after 1m40s
2026-07-22 22:40:08 +02:00
fraujulian 9f1429a78c build: ignore Gitea metadata in image context 2026-07-22 22:36:40 +02:00
fraujulian 3ea0abcf7e build: update image source URL 2026-07-22 22:35:20 +02:00
fraujulian 2d5d19b295 docs: update repository links for Gitea 2026-07-22 22:35:03 +02:00
fraujulian cdf8ea98a1 ci: migrate workflows to Gitea Actions 2026-07-22 22:34:36 +02:00
fraujulian e8f617ba06 chore: migrate repository metadata to Gitea 2026-07-22 22:32:25 +02:00
15 changed files with 304 additions and 195 deletions

No files matched your search

+2 -2
View File
@@ -2,8 +2,8 @@
.git .git
.gitignore .gitignore
# GitHub metadata and local CI files # Gitea metadata and local CI files
.github .gitea
# IDE/editor files # IDE/editor files
.idea .idea
File renamed without changes.
File renamed without changes.
File renamed without changes.
+73
View File
@@ -0,0 +1,73 @@
name: Create Gitea release
description: Create or update a stable release or prerelease for the current commit
inputs:
token:
required: true
description: Gitea API token
prerelease:
required: true
description: Whether to publish a prerelease
runs:
using: composite
steps:
- name: Create or update Gitea release
shell: bash
env:
GITEA_TOKEN: ${{ inputs.token }}
GITEA_API_URL: ${{ gitea.api_url }}
GITEA_REPOSITORY: ${{ gitea.repository }}
GITEA_SERVER_URL: ${{ gitea.server_url }}
GITEA_SHA: ${{ gitea.sha }}
RELEASE_IS_PRERELEASE: ${{ inputs.prerelease }}
run: |
set -euo pipefail
version="$(git rev-parse --short=12 "$GITEA_SHA")"
if [[ ! "$version" =~ ^[0-9a-f]{12}$ ]]; then
echo "Invalid git hash version: $version" >&2
exit 1
fi
release_tag="v$version"
if [ "$RELEASE_IS_PRERELEASE" = true ]; then
release_tag="$release_tag-dev"
fi
releases_url="$GITEA_API_URL/repos/$GITEA_REPOSITORY/releases"
auth_header="Authorization: token $GITEA_TOKEN"
previous_tag="$(curl --fail --silent --show-error --header "$auth_header" "$releases_url?limit=100" | jq -r --arg tag "$release_tag" --argjson prerelease "$RELEASE_IS_PRERELEASE" '[.[] | select(.draft == false and .prerelease == $prerelease and .tag_name != $tag)][0].tag_name // empty')"
if [ -n "$previous_tag" ]; then
commit_messages="$(git log --reverse --format='- %s' "${previous_tag}..${GITEA_SHA}")"
full_changelog="$GITEA_SERVER_URL/$GITEA_REPOSITORY/compare/${previous_tag}...$release_tag"
else
commit_messages="$(git log --reverse --format='- %s' "$GITEA_SHA")"
full_changelog=""
fi
if [ -z "$commit_messages" ]; then
commit_messages="- No commits since the previous release"
fi
{
echo '## Changes'
echo
printf '%s\n' "$commit_messages"
echo
if [ -n "$full_changelog" ]; then
echo "**Full Changelog**: $full_changelog"
fi
} > release-notes.md
payload="$(jq -Rs --arg tag "$release_tag" --arg target "$GITEA_SHA" --argjson prerelease "$RELEASE_IS_PRERELEASE" '{tag_name: $tag, target_commitish: $target, name: $tag, body: ., draft: false, prerelease: $prerelease}' release-notes.md)"
status="$(curl --silent --show-error --output release.json --write-out '%{http_code}' --header "$auth_header" "$releases_url/tags/$release_tag")"
if [ "$status" = 200 ]; then
release_id="$(jq -r '.id' release.json)"
curl --fail-with-body --silent --show-error --request PATCH --header "$auth_header" --header 'Content-Type: application/json' --data "$payload" "$releases_url/$release_id"
elif [ "$status" = 404 ]; then
curl --fail-with-body --silent --show-error --request POST --header "$auth_header" --header 'Content-Type: application/json' --data "$payload" "$releases_url"
else
cat release.json
exit 1
fi
+39
View File
@@ -0,0 +1,39 @@
name: Publish Docker image
description: Build and push the maintenance image
inputs:
tag:
required: true
description: Docker image tag
username:
required: true
description: Registry username
password:
required: true
description: Registry password
runs:
using: composite
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4.4.1
- name: Log in to registry
shell: bash
env:
REGISTRY_USERNAME: ${{ inputs.username }}
REGISTRY_PASSWORD: ${{ inputs.password }}
run: printf '%s' "$REGISTRY_PASSWORD" | docker login "$REGISTRY" --username "$REGISTRY_USERNAME" --password-stdin
- name: Build and push image
uses: docker/build-push-action@v7.4.0
with:
context: .
push: true
provenance: false
build-args: |
APP_VERSION=${{ gitea.sha }}
VCS_REF=${{ gitea.sha }}
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ inputs.tag }}
labels: |
org.opencontainers.image.version=${{ gitea.sha }}
org.opencontainers.image.revision=${{ gitea.sha }}
org.opencontainers.image.source=${{ gitea.repositoryUrl }}
+64
View File
@@ -0,0 +1,64 @@
name: CD Development
on:
schedule:
- cron: '0 23 * * *'
workflow_dispatch:
permissions:
contents: write
actions: read
env:
REGISTRY: docker.lechner-systems.at
IMAGE_NAME: lechnersystems/maintenance
jobs:
changes:
runs-on: ubuntu-latest
outputs:
changed: ${{ steps.check.outputs.changed }}
steps:
- name: Check for commits since previous successful development release
id: check
env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
GITEA_API_URL: ${{ gitea.api_url }}
GITEA_REPOSITORY: ${{ gitea.repository }}
GITEA_SHA: ${{ gitea.sha }}
shell: bash
run: |
runs_url="$GITEA_API_URL/repos/$GITEA_REPOSITORY/actions/runs?limit=100"
runs="$(curl --fail --silent --show-error --header "Authorization: token $GITEA_TOKEN" "$runs_url")"
previous_sha="$(jq -r --arg path '.gitea/workflows/CD Development.yml' '[.workflow_runs[] | select(.path == $path and .status == "success")][0].head_sha // empty' <<< "$runs")"
if [ "$previous_sha" = "$GITEA_SHA" ]; then
echo 'changed=false' >> "$GITEA_OUTPUT"
echo 'No changes since previous successful development release.'
else
echo 'changed=true' >> "$GITEA_OUTPUT"
echo 'Changes found; development release will run.'
fi
publish:
needs: changes
if: needs.changes.outputs.changed == 'true'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v7.0.1
with:
fetch-depth: 0
- name: Publish Docker image
uses: ./.gitea/actions/publish-image
with:
tag: dev
username: ${{ secrets.DOCKER_REGISTRY_USERNAME }}
password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
- name: Create Gitea prerelease
uses: ./.gitea/actions/create-release
with:
token: ${{ secrets.GITEA_TOKEN }}
prerelease: 'true'
+33
View File
@@ -0,0 +1,33 @@
name: CD Production
on:
workflow_dispatch:
permissions:
contents: write
env:
REGISTRY: docker.lechner-systems.at
IMAGE_NAME: lechnersystems/maintenance
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v7.0.1
with:
fetch-depth: 0
- name: Publish Docker image
uses: ./.gitea/actions/publish-image
with:
tag: latest
username: ${{ secrets.DOCKER_REGISTRY_USERNAME }}
password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
- name: Create Gitea stable release
uses: ./.gitea/actions/create-release
with:
token: ${{ secrets.GITEA_TOKEN }}
prerelease: 'false'
+34
View File
@@ -0,0 +1,34 @@
name: CI
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
env:
REGISTRY: docker.lechner-systems.at
IMAGE_NAME: lechnersystems/maintenance
jobs:
javascript:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v7.0.1
- name: Check JavaScript syntax
run: node --check script.js
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v7.0.1
- name: Build Docker image
run: docker build --build-arg APP_VERSION=${{ gitea.sha }} --build-arg VCS_REF=${{ gitea.sha }} --tag "$REGISTRY/$IMAGE_NAME:ci-${{ gitea.sha }}" .
-15
View File
@@ -1,15 +0,0 @@
# These are supported funding model platforms
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: fraujulian
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
polar: # Replace with a single Polar username
buy_me_a_coffee: # Replace with a single Buy Me a Coffee username
thanks_dev: # Replace with a single thanks dev username
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
-61
View File
@@ -1,61 +0,0 @@
name: Build Docker Image - Dev
on:
workflow_dispatch:
push:
branches:
- main
env:
REGISTRY: docker.lechner-systems.at
IMAGE_NAME: lechnersystems/maintenance
jobs:
docker:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Read version
id: version
shell: bash
run: |
version="$(git rev-parse --short=12 HEAD)"
if [[ ! "$version" =~ ^[0-9a-f]{12}$ ]]; then
echo "Invalid git hash version: $version" >&2
exit 1
fi
echo "value=$version" >> "$GITHUB_OUTPUT"
echo "docker_tag=$version" >> "$GITHUB_OUTPUT"
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.DOCKER_REGISTRY_USERNAME }}
password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
- name: Build and push dev image
uses: docker/build-push-action@v6
with:
context: .
push: true
provenance: false
build-args: |
APP_VERSION=${{ github.sha }}
VCS_REF=${{ github.run_number }}
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:dev
labels: |
org.opencontainers.image.version=${{ github.sha }}
org.opencontainers.image.revision=${{ github.run_number }}
org.opencontainers.image.source=https://github.com/${{ github.repository }}
-104
View File
@@ -1,104 +0,0 @@
name: Build Docker Image - Latest
on:
workflow_dispatch:
inputs:
create_release:
description: Create or update the GitHub release for this version
required: true
default: true
type: boolean
env:
REGISTRY: docker.lechner-systems.at
IMAGE_NAME: lechnersystems/maintenance
jobs:
docker:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Read version
id: version
shell: bash
run: |
version="$(git rev-parse --short=12 HEAD)"
if [[ ! "$version" =~ ^[0-9a-f]{12}$ ]]; then
echo "Invalid git hash version: $version" >&2
exit 1
fi
echo "value=$version" >> "$GITHUB_OUTPUT"
echo "docker_tag=$version" >> "$GITHUB_OUTPUT"
echo "release_tag=v$version" >> "$GITHUB_OUTPUT"
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.DOCKER_REGISTRY_USERNAME }}
password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
- name: Build and push latest image
uses: docker/build-push-action@v6
with:
context: .
push: true
provenance: false
build-args: |
APP_VERSION=${{ github.sha }}
VCS_REF=${{ github.run_number }}
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
labels: |
org.opencontainers.image.version=${{ github.sha }}
org.opencontainers.image.revision=${{ github.run_number }}
org.opencontainers.image.source=https://github.com/${{ github.repository }}
- name: Create GitHub release
if: ${{ inputs.create_release }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_TAG: ${{ steps.version.outputs.release_tag }}
shell: bash
run: |
previous_tag="$(gh release list --exclude-drafts --exclude-pre-releases --limit 100 --json tagName --jq '.[].tagName' | grep -Fxv "$RELEASE_TAG" | head -n 1 || true)"
if [ -n "$previous_tag" ]; then
commit_messages="$(git log --reverse --format='- %s' "${previous_tag}..${GITHUB_SHA}")"
full_changelog="https://github.com/${{ github.repository }}/compare/${previous_tag}...${RELEASE_TAG}"
else
commit_messages="$(git log --reverse --format='- %s' "${GITHUB_SHA}")"
full_changelog=""
fi
if [ -z "$commit_messages" ]; then
commit_messages="- No commits since the previous release"
fi
{
echo "## Changes"
echo
printf "%s\n" "$commit_messages"
echo
if [ -n "$full_changelog" ]; then
echo "**Full Changelog**: ${full_changelog}"
fi
} > release-notes.md
if gh release view "$RELEASE_TAG" >/dev/null 2>&1; then
gh release edit "$RELEASE_TAG" --title "$RELEASE_TAG" --notes-file release-notes.md
else
gh release create "$RELEASE_TAG" --target "${GITHUB_SHA}" --title "$RELEASE_TAG" --notes-file release-notes.md
fi
+2 -2
View File
@@ -1,4 +1,4 @@
FROM nginx:1.27-alpine FROM nginx:1.31.6-alpine3.24
ARG VCS_REF=unknown ARG VCS_REF=unknown
ARG APP_VERSION=unknown ARG APP_VERSION=unknown
@@ -8,7 +8,7 @@ LABEL org.opencontainers.image.description="❌ A simple HTML/CSS/JS maintenance
LABEL org.opencontainers.image.licenses="GPL-3.0-only" LABEL org.opencontainers.image.licenses="GPL-3.0-only"
LABEL org.opencontainers.image.version="${APP_VERSION}" LABEL org.opencontainers.image.version="${APP_VERSION}"
LABEL org.opencontainers.image.revision="${VCS_REF}" LABEL org.opencontainers.image.revision="${VCS_REF}"
LABEL org.opencontainers.image.source="https://github.com/Lechner-Systems/MaintenanceWebsite" LABEL org.opencontainers.image.source="https://git.lechner-systems.at/fraujulian/MaintenanceWebsite"
COPY nginx.conf /etc/nginx/conf.d/default.conf COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY index.html /usr/share/nginx/html/index.html COPY index.html /usr/share/nginx/html/index.html
+57 -11
View File
@@ -1,18 +1,64 @@
# HTML Simple Maintenance Page # Maintenance Website
### [πŸ™‹β€β™‚οΈ Website Preview](https://lechner-systems.at/) A lightweight maintenance page served as a static website.
<img width="2559" height="1173" alt="image" src="https://github.com/user-attachments/assets/8709217f-5395-4e8b-af21-d32de98b1a09" /> ## Preview
### πŸͺͺ License [Open the live preview](https://lechner-systems.at/)
Icons: [Icons8.com](https://icons8.com/)
Modified by Julian Lechner. ## Technology
Based on [Simple Maintenance Page](https://github.com/theoricher/Simple-Maintenance-Page).
Licensed under GNU GPL v3.
## 🀝 Enjoy? - HTML, CSS, and vanilla JavaScript
- Nginx
- Docker and Docker Compose
Give it a star ⭐ on [GitHub](https://github.com/FrauJulian/Personal-Portfolio-Website)! ## Features
### Greetings from Austria! ⛰️ - Selects a maintenance message from the browser's preferred language, with English fallback
- Supports English, German, Slovak, Czech, Dutch, Swedish, Norwegian, Polish, Italian, French, Spanish, Slovenian, and Danish
- Provides email, abuse, phone, imprint, and status links
## Project Architecture
- `index.html` β€” page content and contact links
- `style.css` β€” page layout and styling
- `script.js` β€” language selection
- `images/` β€” page images and icons
- `nginx.conf` β€” web server configuration
- `Dockerfile` β€” production image definition
- `docker-compose.yml` β€” production service configuration
## Setup
### Development
From the project root, start a local static server:
```sh
python -m http.server 8000
```
Open <http://localhost:8000>.
### Production
Requires Docker Compose and access to the configured image registry. Copy the example environment file, set `IMAGE_TAG` if needed, then start the service:
```sh
cp .env.example .env
docker compose up -d
```
The page is available at <http://localhost:8080> by default. Set `MAIN_PORT` in `.env` to change the host port.
## Tests
There is no dedicated test suite. CI checks JavaScript syntax with `node --check` and builds the Docker image.
## Guidelines
Use the issue templates in [`.gitea/ISSUE_TEMPLATE`](.gitea/ISSUE_TEMPLATE) for bug reports and feature requests.
## LICENSE
The project is licensed under the [GNU General Public License v3](LICENSE). Icons by [Icons8](https://icons8.com/).