Author SHA1 Message Date
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
13 changed files with 221 additions and 187 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.
+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@v4
- name: Check JavaScript syntax
run: node --check script.js
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- 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 }}" .
+75
View File
@@ -0,0 +1,75 @@
name: Release Development
on:
schedule:
- cron: '0 23 * * *'
workflow_dispatch:
permissions:
contents: read
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/ReleaseDevelopment.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
image:
needs: changes
if: needs.changes.outputs.changed == 'true'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- 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 development image
uses: docker/build-push-action@v6
with:
context: .
push: true
provenance: false
build-args: |
APP_VERSION=${{ gitea.sha }}
VCS_REF=${{ gitea.sha }}
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:dev
labels: |
org.opencontainers.image.version=${{ gitea.sha }}
org.opencontainers.image.revision=${{ gitea.sha }}
org.opencontainers.image.source=${{ gitea.repositoryUrl }}
+107
View File
@@ -0,0 +1,107 @@
name: Release Production
on:
workflow_dispatch:
permissions:
contents: write
env:
REGISTRY: docker.lechner-systems.at
IMAGE_NAME: lechnersystems/maintenance
jobs:
image:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- 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 production image
uses: docker/build-push-action@v6
with:
context: .
push: true
provenance: false
build-args: |
APP_VERSION=${{ gitea.sha }}
VCS_REF=${{ gitea.sha }}
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
labels: |
org.opencontainers.image.version=${{ gitea.sha }}
org.opencontainers.image.revision=${{ gitea.sha }}
org.opencontainers.image.source=${{ gitea.repositoryUrl }}
release:
needs: image
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Create or update Gitea release
env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
GITEA_API_URL: ${{ gitea.api_url }}
GITEA_REPOSITORY: ${{ gitea.repository }}
GITEA_SERVER_URL: ${{ gitea.server_url }}
GITEA_SHA: ${{ gitea.sha }}
shell: bash
run: |
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"
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" '[.[] | select(.draft == false and .prerelease == false 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" '{tag_name: $tag, target_commitish: $target, name: $tag, body: ., draft: false, prerelease: false}' 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
-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
+1 -1
View File
@@ -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
+2 -4
View File
@@ -2,17 +2,15 @@
### [πŸ™‹β€β™‚οΈ Website Preview](https://lechner-systems.at/) ### [πŸ™‹β€β™‚οΈ Website Preview](https://lechner-systems.at/)
<img width="2559" height="1173" alt="image" src="https://github.com/user-attachments/assets/8709217f-5395-4e8b-af21-d32de98b1a09" />
### πŸͺͺ License ### πŸͺͺ License
Icons: [Icons8.com](https://icons8.com/) Icons: [Icons8.com](https://icons8.com/)
Modified by Julian Lechner. Modified by Julian Lechner.
Based on [Simple Maintenance Page](https://github.com/theoricher/Simple-Maintenance-Page). Based on Simple Maintenance Page by theoricher.
Licensed under GNU GPL v3. Licensed under GNU GPL v3.
## 🀝 Enjoy? ## 🀝 Enjoy?
Give it a star ⭐ on [GitHub](https://github.com/FrauJulian/Personal-Portfolio-Website)! Give it a star ⭐ on [Gitea](https://git.lechner-systems.at/FrauJulian/Personal-Portfolio-Website)!
### Greetings from Austria! ⛰️ ### Greetings from Austria! ⛰️