renovate
This commit is contained in:
@@ -9,11 +9,13 @@ jobs:
|
|||||||
renovate:
|
renovate:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
# Bewusst KEIN `uses: ...` Schritt:
|
||||||
uses: actions/checkout@v7.0.1
|
# `actions/checkout` und `renovatebot/github-action` werden von
|
||||||
|
# github.com bzw. ghcr.io geladen und brauchen einen GitHub-Account.
|
||||||
- name: Run Renovate
|
# `docker run renovate/renovate` kommt von Docker Hub und braucht nur
|
||||||
uses: renovatebot/github-action:latest
|
# den Gitea-Token (secrets.RENOVATE_TOKEN). Renovate klont das Repo
|
||||||
|
# selbst über die Gitea-API, ein Checkout ist daher nicht nötig.
|
||||||
|
- name: Run Renovate via Docker Hub
|
||||||
env:
|
env:
|
||||||
RENOVATE_PLATFORM: 'gitea'
|
RENOVATE_PLATFORM: 'gitea'
|
||||||
RENOVATE_ENDPOINT: 'https://humocs-man.duckdns.org/api/v1'
|
RENOVATE_ENDPOINT: 'https://humocs-man.duckdns.org/api/v1'
|
||||||
@@ -23,4 +25,18 @@ jobs:
|
|||||||
RENOVATE_HOST_RULES: '[{"hostType": "github", "matchHost": "github.com", "token": ""}]'
|
RENOVATE_HOST_RULES: '[{"hostType": "github", "matchHost": "github.com", "token": ""}]'
|
||||||
RENOVATE_PRODUCT_METADATA_URL: ''
|
RENOVATE_PRODUCT_METADATA_URL: ''
|
||||||
RENOVATE_FETCH_CHANGELOGS: 'off'
|
RENOVATE_FETCH_CHANGELOGS: 'off'
|
||||||
RENOVATE_REPOSITORY_CACHE: 'enabled'
|
RENOVATE_REPOSITORY_CACHE: 'enabled'
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
docker pull renovate/renovate:44
|
||||||
|
docker run --rm \
|
||||||
|
-e RENOVATE_PLATFORM \
|
||||||
|
-e RENOVATE_ENDPOINT \
|
||||||
|
-e RENOVATE_TOKEN \
|
||||||
|
-e RENOVATE_REQUIRE_CONFIG \
|
||||||
|
-e RENOVATE_REPOSITORIES \
|
||||||
|
-e RENOVATE_HOST_RULES \
|
||||||
|
-e RENOVATE_PRODUCT_METADATA_URL \
|
||||||
|
-e RENOVATE_FETCH_CHANGELOGS \
|
||||||
|
-e RENOVATE_REPOSITORY_CACHE \
|
||||||
|
renovate/renovate:44
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
export registry := env("REGISTRY", "humocs-man.duckdns.org/humocs-man")
|
||||||
export image_name := env("IMAGE_NAME", "fluffy-pancake")
|
export image_name := env("IMAGE_NAME", "fluffy-pancake")
|
||||||
export default_tag := env("DEFAULT_TAG", "stable")
|
export default_tag := env("DEFAULT_TAG", "stable")
|
||||||
export bib_image := env("BIB_IMAGE", "quay.io/centos-bootc/bootc-image-builder:latest")
|
export bib_image := env("BIB_IMAGE", "quay.io/centos-bootc/bootc-image-builder:latest")
|
||||||
@@ -15,8 +16,8 @@ default:
|
|||||||
check:
|
check:
|
||||||
#!/usr/bin/bash
|
#!/usr/bin/bash
|
||||||
find . -type f -name "*.just" | while read -r file; do
|
find . -type f -name "*.just" | while read -r file; do
|
||||||
echo "Checking syntax: $file"
|
echo "Checking syntax: $file"
|
||||||
just --unstable --fmt --check -f "$file"
|
just --unstable --fmt --check -f "$file"
|
||||||
done
|
done
|
||||||
echo "Checking syntax: Justfile"
|
echo "Checking syntax: Justfile"
|
||||||
just --unstable --fmt --check -f Justfile
|
just --unstable --fmt --check -f Justfile
|
||||||
@@ -26,8 +27,8 @@ check:
|
|||||||
fix:
|
fix:
|
||||||
#!/usr/bin/bash
|
#!/usr/bin/bash
|
||||||
find . -type f -name "*.just" | while read -r file; do
|
find . -type f -name "*.just" | while read -r file; do
|
||||||
echo "Checking syntax: $file"
|
echo "Checking syntax: $file"
|
||||||
just --unstable --fmt -f "$file"
|
just --unstable --fmt -f "$file"
|
||||||
done
|
done
|
||||||
echo "Checking syntax: Justfile"
|
echo "Checking syntax: Justfile"
|
||||||
just --unstable --fmt -f Justfile || { exit 1; }
|
just --unstable --fmt -f Justfile || { exit 1; }
|
||||||
@@ -42,7 +43,7 @@ clean:
|
|||||||
rm -f previous.manifest.json
|
rm -f previous.manifest.json
|
||||||
rm -f changelog.md
|
rm -f changelog.md
|
||||||
rm -f output.env
|
rm -f output.env
|
||||||
rm -f output/
|
rm -rf output/
|
||||||
|
|
||||||
# Sudo Clean Repo
|
# Sudo Clean Repo
|
||||||
[group('Utility')]
|
[group('Utility')]
|
||||||
@@ -68,24 +69,7 @@ sudoif command *args:
|
|||||||
}
|
}
|
||||||
sudoif {{ command }} {{ args }}
|
sudoif {{ command }} {{ args }}
|
||||||
|
|
||||||
# This Justfile recipe builds a container image using Podman.
|
# Build the local image using Podman from Containerfile
|
||||||
#
|
|
||||||
# Arguments:
|
|
||||||
# $target_image - The tag you want to apply to the image (default: $image_name).
|
|
||||||
# $tag - The tag for the image (default: $default_tag).
|
|
||||||
#
|
|
||||||
# The script constructs the version string using the tag and the current date.
|
|
||||||
# If the git working directory is clean, it also includes the short SHA of the current HEAD.
|
|
||||||
#
|
|
||||||
# just build $target_image $tag
|
|
||||||
#
|
|
||||||
# Example usage:
|
|
||||||
# just build aurora lts
|
|
||||||
#
|
|
||||||
# This will build an image 'aurora:lts' with DX and GDX enabled.
|
|
||||||
#
|
|
||||||
|
|
||||||
# Build the image using the specified parameters
|
|
||||||
build $target_image=image_name $tag=default_tag:
|
build $target_image=image_name $tag=default_tag:
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
@@ -100,65 +84,46 @@ build $target_image=image_name $tag=default_tag:
|
|||||||
--tag "${target_image}:${tag}" \
|
--tag "${target_image}:${tag}" \
|
||||||
.
|
.
|
||||||
|
|
||||||
# Command: _rootful_load_image
|
# Pulls remote image or loads local image into rootful podman storage for BIB
|
||||||
# Description: This script checks if the current user is root or running under sudo. If not, it attempts to resolve the image tag using podman inspect.
|
_rootful_load_image $target_image $tag=default_tag:
|
||||||
# If the image is found, it loads it into rootful podman. If the image is not found, it pulls it from the repository.
|
|
||||||
#
|
|
||||||
# Parameters:
|
|
||||||
# $target_image - The name of the target image to be loaded or pulled.
|
|
||||||
# $tag - The tag of the target image to be loaded or pulled. Default is 'default_tag'.
|
|
||||||
#
|
|
||||||
# Example usage:
|
|
||||||
# _rootful_load_image my_image latest
|
|
||||||
#
|
|
||||||
# Steps:
|
|
||||||
# 1. Check if the script is already running as root or under sudo.
|
|
||||||
# 2. Check if target image is in the non-root podman container storage)
|
|
||||||
# 3. If the image is found, load it into rootful podman using podman scp.
|
|
||||||
# 4. If the image is not found, pull it from the remote repository into reootful podman.
|
|
||||||
|
|
||||||
_rootful_load_image $target_image=image_name $tag=default_tag:
|
|
||||||
#!/usr/bin/bash
|
#!/usr/bin/bash
|
||||||
set -eoux pipefail
|
set -eoux pipefail
|
||||||
|
|
||||||
# Check if already running as root or under sudo
|
FULL_IMAGE="${target_image}:${tag}"
|
||||||
|
|
||||||
|
# Target ist Remote-Image -> Direkt via Rootful Podman pullen
|
||||||
|
if [[ "${target_image}" != localhost/* ]]; then
|
||||||
|
echo "==> Pulle Remote-Image: ${FULL_IMAGE}"
|
||||||
|
just sudoif podman pull "${FULL_IMAGE}"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Target ist lokales Image -> In Rootful Storage kopieren
|
||||||
if [[ -n "${SUDO_USER:-}" || "${UID}" -eq "0" ]]; then
|
if [[ -n "${SUDO_USER:-}" || "${UID}" -eq "0" ]]; then
|
||||||
echo "Already root or running under sudo, no need to load image from user podman."
|
echo "Bereits als root aktiv."
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Try to resolve the image tag using podman inspect
|
|
||||||
set +e
|
set +e
|
||||||
resolved_tag=$(podman inspect -t image "${target_image}:${tag}" | jq -r '.[].RepoTags.[0]')
|
podman inspect -t image "${FULL_IMAGE}" > /dev/null 2>&1
|
||||||
return_code=$?
|
return_code=$?
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
USER_IMG_ID=$(podman images --filter reference="${target_image}:${tag}" --format "'{{ '{{.ID}}' }}'")
|
USER_IMG_ID=$(podman images -q "${FULL_IMAGE}")
|
||||||
|
|
||||||
if [[ $return_code -eq 0 ]]; then
|
if [[ $return_code -eq 0 ]]; then
|
||||||
# If the image is found, load it into rootful podman
|
ID=$(just sudoif podman images -q "${FULL_IMAGE}")
|
||||||
ID=$(just sudoif podman images --filter reference="${target_image}:${tag}" --format "'{{ '{{.ID}}' }}'")
|
|
||||||
if [[ "$ID" != "$USER_IMG_ID" ]]; then
|
if [[ "$ID" != "$USER_IMG_ID" ]]; then
|
||||||
# podman image scp ist deprecated (Podman 5) -> save/load verwenden
|
|
||||||
COPYTMP=$(mktemp -p "${PWD}" -d -t _build_podman_load.XXXXXXXXXX)
|
COPYTMP=$(mktemp -p "${PWD}" -d -t _build_podman_load.XXXXXXXXXX)
|
||||||
podman save "${target_image}:${tag}" -o "${COPYTMP}/image.tar"
|
podman save "${FULL_IMAGE}" -o "${COPYTMP}/image.tar"
|
||||||
just sudoif podman load -i "${COPYTMP}/image.tar"
|
just sudoif podman load -i "${COPYTMP}/image.tar"
|
||||||
rm -rf "${COPYTMP}"
|
rm -rf "${COPYTMP}"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# If the image is not found, pull it from the repository
|
just sudoif podman pull "${FULL_IMAGE}"
|
||||||
just sudoif podman pull "${target_image}:${tag}"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Build a bootc bootable image using Bootc Image Builder (BIB)
|
# Build a bootc bootable image using Bootc Image Builder (BIB)
|
||||||
# Converts a container image to a bootable image
|
|
||||||
# Parameters:
|
|
||||||
# target_image: The name of the image to build (ex. localhost/fedora)
|
|
||||||
# tag: The tag of the image to build (ex. latest)
|
|
||||||
# type: The type of image to build (ex. qcow2, raw, iso)
|
|
||||||
# config: The configuration file to use for the build (default: iso/disk.toml)
|
|
||||||
|
|
||||||
# Example: just _rebuild-bib localhost/fedora latest qcow2 iso/disk.toml
|
|
||||||
_build-bib $target_image $tag $type $config: (_rootful_load_image target_image tag)
|
_build-bib $target_image $tag $type $config: (_rootful_load_image target_image tag)
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
@@ -176,8 +141,8 @@ _build-bib $target_image $tag $type $config: (_rootful_load_image target_image t
|
|||||||
--pull=newer \
|
--pull=newer \
|
||||||
--net=host \
|
--net=host \
|
||||||
--security-opt label=type:unconfined_t \
|
--security-opt label=type:unconfined_t \
|
||||||
-v $(pwd)/${config}:/config.toml:ro \
|
-v "$(pwd)/${config}":/config.toml:ro \
|
||||||
-v $BUILDTMP:/output \
|
-v "$BUILDTMP":/output \
|
||||||
-v /var/lib/containers/storage:/var/lib/containers/storage \
|
-v /var/lib/containers/storage:/var/lib/containers/storage \
|
||||||
"${bib_image}" \
|
"${bib_image}" \
|
||||||
${args} \
|
${args} \
|
||||||
@@ -188,57 +153,59 @@ _build-bib $target_image $tag $type $config: (_rootful_load_image target_image t
|
|||||||
sudo rmdir $BUILDTMP
|
sudo rmdir $BUILDTMP
|
||||||
sudo chown -R $USER:$USER output/
|
sudo chown -R $USER:$USER output/
|
||||||
|
|
||||||
# Podman builds the image from the Containerfile and creates a bootable image
|
# Rebuild-Schritt: Führt vor BIB ein lokales 'podman build' aus
|
||||||
# Parameters:
|
|
||||||
# target_image: The name of the image to build (ex. localhost/fedora)
|
|
||||||
# tag: The tag of the image to build (ex. latest)
|
|
||||||
# type: The type of image to build (ex. qcow2, raw, iso)
|
|
||||||
# config: The configuration file to use for the build (deafult: iso/disk.toml)
|
|
||||||
|
|
||||||
# Example: just _rebuild-bib localhost/fedora latest qcow2 iso/disk.toml
|
|
||||||
_rebuild-bib $target_image $tag $type $config: (build target_image tag) && (_build-bib target_image tag type config)
|
_rebuild-bib $target_image $tag $type $config: (build target_image tag) && (_build-bib target_image tag type config)
|
||||||
|
|
||||||
# Build a QCOW2 virtual machine image
|
# ==============================================================================
|
||||||
[group('Build Virtual Machine Image')]
|
# BUILD TARGETS (Pullen aus Remote-Registry)
|
||||||
build-qcow2 $target_image=("localhost/" + image_name) $tag=default_tag: && (_build-bib target_image tag "qcow2" "iso/disk.toml")
|
# ==============================================================================
|
||||||
|
|
||||||
# Build a RAW virtual machine image
|
# Build a QCOW2 virtual machine image from Registry
|
||||||
[group('Build Virtual Machine Image')]
|
[group('Build Virtual Machine Image')]
|
||||||
build-raw $target_image=("localhost/" + image_name) $tag=default_tag: && (_build-bib target_image tag "raw" "iso/disk.toml")
|
build-qcow2 $target_image=(registry + "/" + image_name) $tag=default_tag: && (_build-bib target_image tag "qcow2" "iso/disk.toml")
|
||||||
|
|
||||||
# Build an ISO virtual machine image
|
# Build a RAW virtual machine image from Registry
|
||||||
[group('Build Virtual Machine Image')]
|
[group('Build Virtual Machine Image')]
|
||||||
build-iso $target_image=("localhost/" + image_name) $tag=default_tag: && (_build-bib target_image tag "iso" "iso/iso.toml")
|
build-raw $target_image=(registry + "/" + image_name) $tag=default_tag: && (_build-bib target_image tag "raw" "iso/disk.toml")
|
||||||
|
|
||||||
# Rebuild a QCOW2 virtual machine image
|
# Build an ISO virtual machine image from Registry
|
||||||
|
[group('Build Virtual Machine Image')]
|
||||||
|
build-iso $target_image=(registry + "/" + image_name) $tag=default_tag: && (_build-bib target_image tag "iso" "iso/iso.toml")
|
||||||
|
|
||||||
|
# ==============================================================================
|
||||||
|
# REBUILD TARGETS (Lokaler Build via Containerfile + Image Builder)
|
||||||
|
# ==============================================================================
|
||||||
|
|
||||||
|
# Rebuild a QCOW2 virtual machine image locally
|
||||||
[group('Build Virtual Machine Image')]
|
[group('Build Virtual Machine Image')]
|
||||||
rebuild-qcow2 $target_image=("localhost/" + image_name) $tag=default_tag: && (_rebuild-bib target_image tag "qcow2" "iso/disk.toml")
|
rebuild-qcow2 $target_image=("localhost/" + image_name) $tag=default_tag: && (_rebuild-bib target_image tag "qcow2" "iso/disk.toml")
|
||||||
|
|
||||||
# Rebuild a RAW virtual machine image
|
# Rebuild a RAW virtual machine image locally
|
||||||
[group('Build Virtual Machine Image')]
|
[group('Build Virtual Machine Image')]
|
||||||
rebuild-raw $target_image=("localhost/" + image_name) $tag=default_tag: && (_rebuild-bib target_image tag "raw" "iso/disk.toml")
|
rebuild-raw $target_image=("localhost/" + image_name) $tag=default_tag: && (_rebuild-bib target_image tag "raw" "iso/disk.toml")
|
||||||
|
|
||||||
# Rebuild an ISO virtual machine image
|
# Rebuild an ISO virtual machine image locally
|
||||||
[group('Build Virtual Machine Image')]
|
[group('Build Virtual Machine Image')]
|
||||||
rebuild-iso $target_image=("localhost/" + image_name) $tag=default_tag: && (_rebuild-bib target_image tag "iso" "iso/iso.toml")
|
rebuild-iso $target_image=("localhost/" + image_name) $tag=default_tag: && (_rebuild-bib target_image tag "iso" "iso/iso.toml")
|
||||||
|
|
||||||
|
# ==============================================================================
|
||||||
|
# RUN TARGETS
|
||||||
|
# ==============================================================================
|
||||||
|
|
||||||
# Run a virtual machine with the specified image type and configuration
|
# Run a virtual machine with the specified image type and configuration
|
||||||
_run-vm $target_image $tag $type $config:
|
_run-vm $target_image $tag $type $config:
|
||||||
#!/usr/bin/bash
|
#!/usr/bin/bash
|
||||||
set -eoux pipefail
|
set -eoux pipefail
|
||||||
|
|
||||||
# Determine the image file based on the type
|
|
||||||
image_file="output/${type}/disk.${type}"
|
image_file="output/${type}/disk.${type}"
|
||||||
if [[ $type == iso ]]; then
|
if [[ $type == iso ]]; then
|
||||||
image_file="output/bootiso/install.iso"
|
image_file="output/bootiso/install.iso"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Build the image if it does not exist
|
|
||||||
if [[ ! -f "${image_file}" ]]; then
|
if [[ ! -f "${image_file}" ]]; then
|
||||||
just "build-${type}" "$target_image" "$tag"
|
just "build-${type}" "$target_image" "$tag"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Determine an available port to use
|
|
||||||
port=8006
|
port=8006
|
||||||
while grep -q :${port} <<< $(ss -tunalp); do
|
while grep -q :${port} <<< $(ss -tunalp); do
|
||||||
port=$(( port + 1 ))
|
port=$(( port + 1 ))
|
||||||
@@ -246,7 +213,6 @@ _run-vm $target_image $tag $type $config:
|
|||||||
echo "Using Port: ${port}"
|
echo "Using Port: ${port}"
|
||||||
echo "Connect to http://localhost:${port}"
|
echo "Connect to http://localhost:${port}"
|
||||||
|
|
||||||
# Set up the arguments for running the VM
|
|
||||||
run_args=()
|
run_args=()
|
||||||
run_args+=(--rm --privileged)
|
run_args+=(--rm --privileged)
|
||||||
run_args+=(--pull=newer)
|
run_args+=(--pull=newer)
|
||||||
@@ -260,21 +226,20 @@ _run-vm $target_image $tag $type $config:
|
|||||||
run_args+=(--volume "${PWD}/${image_file}":"/boot.${type}")
|
run_args+=(--volume "${PWD}/${image_file}":"/boot.${type}")
|
||||||
run_args+=(docker.io/qemux/qemu)
|
run_args+=(docker.io/qemux/qemu)
|
||||||
|
|
||||||
# Run the VM and open the browser to connect
|
|
||||||
(sleep 30 && xdg-open http://localhost:"$port") &
|
(sleep 30 && xdg-open http://localhost:"$port") &
|
||||||
podman run "${run_args[@]}"
|
podman run "${run_args[@]}"
|
||||||
|
|
||||||
# Run a virtual machine from a QCOW2 image
|
# Run a virtual machine from a QCOW2 image
|
||||||
[group('Run Virtual Machine')]
|
[group('Run Virtual Machine')]
|
||||||
run-vm-qcow2 $target_image=("localhost/" + image_name) $tag=default_tag: && (_run-vm target_image tag "qcow2" "iso/disk.toml")
|
run-vm-qcow2 $target_image=(registry + "/" + image_name) $tag=default_tag: && (_run-vm target_image tag "qcow2" "iso/disk.toml")
|
||||||
|
|
||||||
# Run a virtual machine from a RAW image
|
# Run a virtual machine from a RAW image
|
||||||
[group('Run Virtual Machine')]
|
[group('Run Virtual Machine')]
|
||||||
run-vm-raw $target_image=("localhost/" + image_name) $tag=default_tag: && (_run-vm target_image tag "raw" "iso/disk.toml")
|
run-vm-raw $target_image=(registry + "/" + image_name) $tag=default_tag: && (_run-vm target_image tag "raw" "iso/disk.toml")
|
||||||
|
|
||||||
# Run a virtual machine from an ISO
|
# Run a virtual machine from an ISO
|
||||||
[group('Run Virtual Machine')]
|
[group('Run Virtual Machine')]
|
||||||
run-vm-iso $target_image=("localhost/" + image_name) $tag=default_tag: && (_run-vm target_image tag "iso" "iso/iso.toml")
|
run-vm-iso $target_image=(registry + "/" + image_name) $tag=default_tag: && (_run-vm target_image tag "iso" "iso/iso.toml")
|
||||||
|
|
||||||
# Run a virtual machine using systemd-vmspawn
|
# Run a virtual machine using systemd-vmspawn
|
||||||
[group('Run Virtual Machine')]
|
[group('Run Virtual Machine')]
|
||||||
@@ -298,22 +263,18 @@ spawn-vm rebuild="0" type="qcow2" ram="6G":
|
|||||||
lint:
|
lint:
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -eoux pipefail
|
set -eoux pipefail
|
||||||
# Check if shellcheck is installed
|
|
||||||
if ! command -v shellcheck &> /dev/null; then
|
if ! command -v shellcheck &> /dev/null; then
|
||||||
echo "shellcheck could not be found. Please install it."
|
echo "shellcheck could not be found. Please install it."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
# Run shellcheck on all Bash scripts
|
|
||||||
/usr/bin/find . -iname "*.sh" -type f -exec shellcheck "{}" ';'
|
/usr/bin/find . -iname "*.sh" -type f -exec shellcheck "{}" ';'
|
||||||
|
|
||||||
# Runs shfmt on all Bash scripts
|
# Runs shfmt on all Bash scripts
|
||||||
format:
|
format:
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -eoux pipefail
|
set -eoux pipefail
|
||||||
# Check if shfmt is installed
|
|
||||||
if ! command -v shfmt &> /dev/null; then
|
if ! command -v shfmt &> /dev/null; then
|
||||||
echo "shfmt could not be found. Please install it."
|
echo "shfmt could not be found. Please install it."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
# Run shfmt on all Bash scripts
|
|
||||||
/usr/bin/find . -iname "*.sh" -type f -exec shfmt --write "{}" ';'
|
/usr/bin/find . -iname "*.sh" -type f -exec shfmt --write "{}" ';'
|
||||||
|
|||||||
@@ -6,12 +6,23 @@
|
|||||||
"customManagers": [
|
"customManagers": [
|
||||||
{
|
{
|
||||||
"customType": "regex",
|
"customType": "regex",
|
||||||
|
"description": "GitHub-Actions (`uses: org/repo@tag`) in Gitea-Workflows pflegen",
|
||||||
"fileMatch": ["^\\.gitea/workflows/[^/]+\\.ya?ml$"],
|
"fileMatch": ["^\\.gitea/workflows/[^/]+\\.ya?ml$"],
|
||||||
"matchStrings": [
|
"matchStrings": [
|
||||||
"uses:\\s*(?<depName>[a-zA-Z0-9-]+/[a-zA-Z0-9-]+)@(?<currentValue>[^\\s]+)"
|
"uses:\\s*(?<depName>[a-zA-Z0-9-]+/[a-zA-Z0-9-]+)@(?<currentValue>[^\\s]+)"
|
||||||
],
|
],
|
||||||
"datasourceTemplate": "git-tags",
|
"datasourceTemplate": "git-tags",
|
||||||
"lookupNameTemplate": "https://github.com/{{{depName}}}.git"
|
"lookupNameTemplate": "https://github.com/{{{depName}}}.git"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"customType": "regex",
|
||||||
|
"description": "Renovate-Eigenversion (`renovate/renovate:tag` per docker run) pflegen",
|
||||||
|
"fileMatch": ["^\\.gitea/workflows/[^/]+\\.ya?ml$"],
|
||||||
|
"matchStrings": [
|
||||||
|
"renovate/renovate:(?<currentValue>[0-9][0-9a-zA-Z._-]*)"
|
||||||
|
],
|
||||||
|
"depNameTemplate": "renovate/renovate",
|
||||||
|
"datasourceTemplate": "docker"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user