Files
netrunner-landing/.gitea/workflows/build.yml
T
nineap df699a1171
Build & Push Image / Build and push to Gitea Registry (push) Failing after 15s
Переезд с ghcr.io на встроенный Container Registry Gitea
Свой netrunner-landing/netrunner-landing-proxy теперь на
gitea.netrunner-vpn.com. Сторонний образ PocketBase (ghcr.io/muchobien/
pocketbase) не трогаю — это чужой образ, живёт там же, где и жил.
2026-07-10 20:44:14 +07:00

58 lines
2.2 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Копия .github/workflows/build.yml для Gitea Actions. Реестр — встроенный
# Container Registry самой Gitea (gitea.netrunner-vpn.com), не ghcr.io —
# secrets.GITEA_REGISTRY_TOKEN (токен Gitea с правом write:package), не
# GHCR_TOKEN/GITHUB_TOKEN. Тот же токен, что и в netrunner-backend/
# netrunner-proxy — пакеты в Gitea принадлежат аккаунту, не репозиторию,
# но значение секрета нужно продублировать в Settings каждого репозитория.
name: Build & Push Image
on:
push:
branches: [main]
workflow_dispatch:
jobs:
build:
name: Build and push to Gitea Registry
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
lfs: true
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Gitea Registry
uses: docker/login-action@v3
with:
registry: gitea.netrunner-vpn.com
username: ${{ github.actor }}
password: ${{ secrets.GITEA_REGISTRY_TOKEN }}
# Сборка Лендинга (Next.js)
- name: Build and Push Landing
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: gitea.netrunner-vpn.com/nineap/netrunner-landing:latest
cache-from: type=registry,ref=gitea.netrunner-vpn.com/nineap/netrunner-landing:cache
cache-to: type=registry,ref=gitea.netrunner-vpn.com/nineap/netrunner-landing:cache,mode=max
# Сборка Прокси (Rust)
- name: Build and Push Proxy
uses: docker/build-push-action@v5
with:
context: ./proxy-ws
file: ./proxy-ws/Dockerfile
push: true
tags: gitea.netrunner-vpn.com/nineap/netrunner-landing-proxy:latest
cache-from: type=registry,ref=gitea.netrunner-vpn.com/nineap/netrunner-landing-proxy:cache
cache-to: type=registry,ref=gitea.netrunner-vpn.com/nineap/netrunner-landing-proxy:cache,mode=max