feature/ci-cd #67

Merged
admin merged 15 commits from feature/ci-cd into master 2026-08-24 11:09:40 +03:30
2 changed files with 4 additions and 3 deletions
Showing only changes of commit a43c433d55 - Show all commits

View File

@@ -34,7 +34,7 @@ defaults:
jobs: jobs:
build-and-push: build-and-push:
runs-on: self-hosted runs-on: windows
outputs: outputs:
image_tag: ${{ steps.meta.outputs.image_tag }} image_tag: ${{ steps.meta.outputs.image_tag }}
steps: steps:
@@ -110,7 +110,7 @@ jobs:
deploy: deploy:
needs: build-and-push needs: build-and-push
runs-on: self-hosted runs-on: windows
steps: steps:
- name: Checkout (shallow clone from this Gitea — no gitea.com) - name: Checkout (shallow clone from this Gitea — no gitea.com)
run: | run: |

View File

@@ -74,7 +74,7 @@ cd C:\gitea-runner
--instance "http://127.0.0.1:3000" ` --instance "http://127.0.0.1:3000" `
--token "<registration-token-from-gitea>" ` --token "<registration-token-from-gitea>" `
--name "windows-staging" ` --name "windows-staging" `
--labels "self-hosted,windows" --labels "windows:host"
``` ```
Start (leave running, or install as a Windows service later): Start (leave running, or install as a Windows service later):
@@ -208,6 +208,7 @@ On the Windows host, from repo `infrastructure/`:
| Symptom | Fix | | Symptom | Fix |
|---------|-----| |---------|-----|
| `no matching online runner with label` | Start `act_runner.exe daemon`; confirm runner is **Online** in Gitea. `runs-on` must match a runner label exactly — workflow uses `windows` (register with `windows:host`). |
| Runner can't register on public IP | Use `http://127.0.0.1:3000` for `--instance` | | Runner can't register on public IP | Use `http://127.0.0.1:3000` for `--instance` |
| Variable name rejected in Gitea | No `GITEA_*` / `GITHUB_*` prefixes; use `CLONE_HOST` | | Variable name rejected in Gitea | No `GITEA_*` / `GITHUB_*` prefixes; use `CLONE_HOST` |
| `server gave HTTP response to HTTPS client` | Add registry to Docker **insecure-registries**, restart Docker | | `server gave HTTP response to HTTPS client` | Add registry to Docker **insecure-registries**, restart Docker |