ci(runner): add custom Docker runner and build-and-push workflow for Gitea registry
CI Test Suite / Run Component Tests & Pipeline Verification (push) Successful in 3m18s
Build and Push LOGAR Runner / Build & Push LOGAR Runner Image (push) Failing after 1m0s

This commit is contained in:
2026-09-26 17:39:33 +02:00
parent 3a3d251817
commit c51194e699
3 changed files with 169 additions and 0 deletions
+65
View File
@@ -0,0 +1,65 @@
name: Build and Push LOGAR Runner
on:
workflow_dispatch:
push:
paths:
- 'runner/**'
- '.gitea/workflows/build-runner.yml'
jobs:
build-and-push:
name: Build & Push LOGAR Runner Image
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Ensure Docker CLI is available
run: |
if ! command -v docker >/dev/null 2>&1; then
echo "Docker CLI not found. Downloading static Docker CLI binary..."
curl -fSL --connect-timeout 15 --max-time 120 --retry 3 https://download.docker.com/linux/static/stable/x86_64/docker-27.3.1.tgz -o /tmp/docker.tgz
tar -xzf /tmp/docker.tgz -C /usr/local/bin --strip-components=1 docker/docker
chmod +x /usr/local/bin/docker
rm -f /tmp/docker.tgz
fi
docker version
- name: Log in to Gitea Container Registry
run: |
REGISTRY="gitea.eibl.tech"
USER="${{ secrets.PACKAGESUSER || secrets.packagesuser || 'me0nline' }}"
PASS="${{ secrets.PACKAGESTOKEN || secrets.packagestoken || 'f64c72025024b0628479b889d871eb764d812951' }}"
echo "Logging in to ${REGISTRY} as ${USER}..."
echo "${PASS}" | docker login "${REGISTRY}" -u "${USER}" --password-stdin
- name: Build Docker Image
env:
DOCKER_BUILDKIT: "0"
run: |
IMAGE_TAG="gitea.eibl.tech/me0nline/logar-runner:latest"
echo "Building ${IMAGE_TAG}..."
docker build \
-t "${IMAGE_TAG}" \
-f runner/Dockerfile \
runner/
- name: Push to Gitea Container Registry
run: |
IMAGE_TAG="gitea.eibl.tech/me0nline/logar-runner:latest"
echo "Pushing ${IMAGE_TAG} to Gitea Container Registry..."
docker push "${IMAGE_TAG}"
echo "Successfully pushed ${IMAGE_TAG} to Gitea Container Registry!"
- name: Trigger Portainer redeploy via webhook (if configured)
env:
PORTAINER_WEBHOOK: ${{ secrets.PORTAINER_WEBHOOK_RUNNER || '' }}
run: |
if [ -n "${PORTAINER_WEBHOOK}" ]; then
echo "Notifying Portainer to redeploy the runner stack..."
curl -s -X POST "${PORTAINER_WEBHOOK}" || true
echo "✓ Portainer webhook triggered"
else
echo "No Portainer webhook secret provided. Skipping notification."
fi