local ip set instead of static public ip server to find it in network.

This commit is contained in:
2026-08-23 14:13:29 +03:30
parent a43c433d55
commit 0e8e3a4a27
2 changed files with 26 additions and 12 deletions

View File

@@ -3,21 +3,23 @@
# Triggers: push to master/main, or manual workflow_dispatch.
#
# Repository Variables (Settings → Actions → Variables):
# REGISTRY_HOST e.g. 178.131.50.201:3000 (no http/https)
# REGISTRY_HOST Docker registry host:port (no http/https). Same PC as Gitea → 127.0.0.1:3000
# REGISTRY_OWNER Gitea user or org that owns the packages
# PUBLIC_BASE_URL URL users open in browser, e.g. http://178.131.50.201:8088 (no trailing slash)
# DEPLOY_SECRETS_DIR absolute path on runner, e.g. C:/dyolink/secrets
#
# Optional:
# STAGING_HTTP_PORT host port for nginx (default 8088)
# CLONE_HOST when runner is on the same host as Gitea and public IP fails locally,
# set to 127.0.0.1:3000 (no http:// — same style as REGISTRY_HOST)
# CLONE_HOST git clone host when runner = Gitea host → 127.0.0.1:3000
#
# Same Windows PC runs Gitea + runner + deploy: use 127.0.0.1:3000 for REGISTRY_HOST and CLONE_HOST.
# PUBLIC_BASE_URL stays the public IP:8088 so users open the app from the network.
#
# Repository Secrets (Settings → Actions → Secrets):
# REGISTRY_USERNAME Gitea username for docker login
# REGISTRY_PASSWORD Gitea access token (packages:read/write) or account password
#
# Docker on runner: add REGISTRY_HOST to insecure-registries (HTTP registry), then restart Docker.
# Docker on runner: add registry hosts to insecure-registries, e.g. ["127.0.0.1:3000","178.131.50.201:3000"]
#
# Runner: self-hosted with Docker + git. Default shell is powershell (Windows act_runner).