ci(runner): configure Portainer webhook and inject registration token via runner .env
Build and Push LOGAR Runner / Build & Push LOGAR Runner Image (push) Failing after 40s
CI Test Suite / Run Component Tests & Pipeline Verification (push) Canceled after 2m8s

This commit is contained in:
2026-09-26 18:05:55 +02:00
parent 38b36c28a0
commit 0e616d614c
3 changed files with 18 additions and 12 deletions
+5 -9
View File
@@ -52,14 +52,10 @@ jobs:
docker push "${IMAGE_TAG}"
echo "Successfully pushed ${IMAGE_TAG} to Gitea Container Registry!"
- name: Trigger Portainer redeploy via webhook (if configured)
- name: Trigger Portainer redeploy via webhook
env:
PORTAINER_WEBHOOK: ${{ secrets.PORTAINER_WEBHOOK_RUNNER || '' }}
PORTAINER_WEBHOOK: ${{ secrets.PORTAINER_WEBHOOK_RUNNER || 'https://portainer.eibl.tech/api/stacks/webhooks/6e67c0b7-1c5d-4bb2-b8b8-4a6ec66d3b87' }}
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
echo "Notifying Portainer to redeploy the runner stack..."
curl -s -X POST "${PORTAINER_WEBHOOK}" || true
echo "✓ Portainer webhook triggered"
+8
View File
@@ -0,0 +1,8 @@
# Gitea Instance URL
GITEA_INSTANCE_URL=https://gitea.eibl.tech
# Gitea Runner Registration Token
GITEA_RUNNER_REGISTRATION_TOKEN=MGynktVmt75MWfqRjahWLKsLKvOlrXDQZH5Wsn2p
# Runner Configuration
GITEA_RUNNER_NAME=logar-build-runner
+5 -3
View File
@@ -5,10 +5,12 @@ services:
image: gitea/act_runner:latest
container_name: logar-act-runner
restart: unless-stopped
env_file:
- .env
environment:
- GITEA_INSTANCE_URL=https://gitea.eibl.tech
- GITEA_RUNNER_REGISTRATION_TOKEN=${GITEA_RUNNER_REGISTRATION_TOKEN}
- GITEA_RUNNER_NAME=logar-build-runner
- GITEA_INSTANCE_URL=${GITEA_INSTANCE_URL:-https://gitea.eibl.tech}
- GITEA_RUNNER_REGISTRATION_TOKEN=${GITEA_RUNNER_REGISTRATION_TOKEN:-MGynktVmt75MWfqRjahWLKsLKvOlrXDQZH5Wsn2p}
- GITEA_RUNNER_NAME=${GITEA_RUNNER_NAME:-logar-build-runner}
- GITEA_RUNNER_LABELS=ubuntu-latest:docker://gitea.eibl.tech/me0nline/logar-runner:latest,debian-latest:docker://gitea.eibl.tech/me0nline/logar-runner:latest,logar-runner:docker://gitea.eibl.tech/me0nline/logar-runner:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock