Переезд с ghcr.io на встроенный Container Registry Gitea
Build & Push Image / Build and push to Gitea Registry (push) Failing after 15s
Build & Push Image / Build and push to Gitea Registry (push) Failing after 15s
Свой netrunner-landing/netrunner-landing-proxy теперь на gitea.netrunner-vpn.com. Сторонний образ PocketBase (ghcr.io/muchobien/ pocketbase) не трогаю — это чужой образ, живёт там же, где и жил.
This commit is contained in:
+16
-13
@@ -1,6 +1,9 @@
|
||||
# Копия .github/workflows/build.yml для Gitea Actions. Логин на ghcr.io — через
|
||||
# secrets.GHCR_TOKEN (настоящий GitHub PAT с write:packages), не
|
||||
# secrets.GITHUB_TOKEN — автотокен Gitea валиден только для самого Gitea.
|
||||
# Копия .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:
|
||||
@@ -10,7 +13,7 @@ on:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build and push to GHCR
|
||||
name: Build and push to Gitea Registry
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
@@ -24,12 +27,12 @@ jobs:
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Login to GHCR
|
||||
- name: Login to Gitea Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ghcr.io
|
||||
registry: gitea.netrunner-vpn.com
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GHCR_TOKEN }}
|
||||
password: ${{ secrets.GITEA_REGISTRY_TOKEN }}
|
||||
|
||||
# Сборка Лендинга (Next.js)
|
||||
- name: Build and Push Landing
|
||||
@@ -38,9 +41,9 @@ jobs:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
push: true
|
||||
tags: ghcr.io/nineap/netrunner-landing:latest
|
||||
cache-from: type=registry,ref=ghcr.io/nineap/netrunner-landing:cache
|
||||
cache-to: type=registry,ref=ghcr.io/nineap/netrunner-landing:cache,mode=max
|
||||
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
|
||||
@@ -49,6 +52,6 @@ jobs:
|
||||
context: ./proxy-ws
|
||||
file: ./proxy-ws/Dockerfile
|
||||
push: true
|
||||
tags: ghcr.io/nineap/netrunner-landing-proxy:latest
|
||||
cache-from: type=registry,ref=ghcr.io/nineap/netrunner-landing-proxy:cache
|
||||
cache-to: type=registry,ref=ghcr.io/nineap/netrunner-landing-proxy:cache,mode=max
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user